In unicode+ansi mode, function IsCustomLineSeparator is used to detect line break.
in unicode mode it was slow.
it called Pos(ch, fLineSeparators)!
so I removed property LineSeparators into {$IFDEF} UseLineSep.
that func now uses fixed set of line break chars, when IFDEF absent.
test shows that now it's faster.
before/after. 2 pics. see time for tests with dot.
already in pull-req.
In unicode+ansi mode, function IsCustomLineSeparator is used to detect line break. in unicode mode it was slow. it called Pos(ch, fLineSeparators)! so I removed property LineSeparators into
{$IFDEF} UseLineSep
. that func now uses fixed set of line break chars, when IFDEF absent. test shows that now it's faster. before/after. 2 pics. see time for tests with dot.before
after