Neil Hodgson wrote:
Robert Roessler:

This comes up for me because I need to look at each line as I am
loading a file, and the way they are handed to me is with any eol
stuff already stripped... I can then either do an add_text of the the
string followed by a second add_text with just the eol, OR I can
concatenate the eol on to the line and do an add_text with the new
dynamically allocated string (yuck).

   To me, either of these is fine and the requested call is just a
minor convenience. I'd be more inclined to accept an "insert with
normalised new lines" call.

As you say, a minor convenience...

BTW, I actually am doing the second one currently, as the extra alloc
and string concatenation appears to be faster than doing the two
Scintilla calls.

   Is the speed really noticeable?

Well, it *is* measurable (10ms over 2000 lines = ~5us per) on my aging 1.4 GHz P-III S (Tualatin)... but I suppose that would not be called "noticeable" by humans. :)

Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to