emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newline cache


From: Richard Stallman
Subject: Re: newline cache
Date: Wed, 23 Apr 2014 20:33:10 -0400

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

    I suggest to try it; you might be surprised.  I tried it on a 7MB mbox
    file, and didn't see any significant slowdown.  The reason is simple:
    the mbox buffer is almost always narrowed, and find_newline, which is
    the workhorse of the function I wrote, and also the main suspect, only
    looks within the restriction.

Well, I could arrange to narrow to the current message
before running the test.  Maybe that will do enough.

-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org  www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
  Use Ekiga or an ordinary phone call.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]