In Synedit's PaintLines is a functioin called AddHighlightToken. At one point it copies the current token to the end of the TokenAccu. At this point a remark can be found: // Don't use AppendStr because it's more expensive.
Instead of using AppendStr, it implements a plain "for i := 0 to ..." loop, copying the content byte by byte. I am pretty sure (but would like to have that confirmed) that using "move" would be even faster? yes I could set up a test and profile it, but maybe someone already knows how move performs vs for loops ? Thanks in advance Martin _______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus