m***@centrum.cz
2007-11-28 16:27:10 UTC
Hello,
I'm sorry if someone already asked this, but the mail archive search doesn't work.
Could be the Colorer plug-in integrated with the Far viewer? The Far
viewer can display huge files, so that the Colorer plugin cannot depend
on syntax analysis of the whole file. An incomplete information from
the displayed part of the file and its small neighbourhood would have
to be suffient for the Colorer to do its job.
More info:
As an experiment, I measured how long it takes to color the whole text
in Far editor. Up to about 6k lines/200kB file it takes about 1 sec per
1k lines for Far to open the colored file. For bigger files, Far opens
the file immediately, not waiting for the Colorer to finish - which
takes more than 10 secs. I experimented on .cpp and Far's .m4 files.
The colorer in Visual Studio colors these .cpp files immediately.
I didn't perform this experiment to benchmark the Colorer engine, I
don't know whether this is result of the Colorer slowliness, or a
restriction of the Far editor API. However it shows that syntax parsing
in the viewer cannot be done on the whole file, not even for small
files.
Thank you,
Martin.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
I'm sorry if someone already asked this, but the mail archive search doesn't work.
Could be the Colorer plug-in integrated with the Far viewer? The Far
viewer can display huge files, so that the Colorer plugin cannot depend
on syntax analysis of the whole file. An incomplete information from
the displayed part of the file and its small neighbourhood would have
to be suffient for the Colorer to do its job.
More info:
As an experiment, I measured how long it takes to color the whole text
in Far editor. Up to about 6k lines/200kB file it takes about 1 sec per
1k lines for Far to open the colored file. For bigger files, Far opens
the file immediately, not waiting for the Colorer to finish - which
takes more than 10 secs. I experimented on .cpp and Far's .m4 files.
The colorer in Visual Studio colors these .cpp files immediately.
I didn't perform this experiment to benchmark the Colorer engine, I
don't know whether this is result of the Colorer slowliness, or a
restriction of the Far editor API. However it shows that syntax parsing
in the viewer cannot be done on the whole file, not even for small
files.
Thank you,
Martin.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4