zedapp/zed — pull request #263 by robru (2014-04-10 06:54:31+00:00)
Title: High performance line counting for Zed.

According to my hours of extensive testing, with evidence here:

http://jsperf.com/uncached-splitting

This is *the* fastest way to count the number of lines in a string, without wasting memory by duplicating the lines with the split.