Disable WordWrap and Syntax Highlighting on loading bigger files

Started by Stefan, February 23, 2009, 01:00:10 PM

Previous topic - Next topic

Stefan

Is there an Option to disable WordWrap and Syntax Highlighting [and more?]
while loading files bigger then xxxxxxxxxx Bytes?

I had load an text file with 1 million lines , 260 MB in size.
This took me 25 seconds because WordWrap was enabled.
If i disable word wrap it took 3 sec. only.

With other editors i have an option to disable formating features if file size is bigger then n byte.
like
<DisableFormatingOnFilesBiggerThenMegaBytes>20</DisableFormatingOnFilesBiggerThenMegaBytes>

The user must enable the formating features he want by hand again, if he want this.
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

alex

Hello Stefan,

good idea. The problem you have is because I am not overwriting user preferences any more, and you still have word wrap always on for text files (i have reverted it to Off in new installations).
But any way, I think, even if user have it for small files enabled, he would not like this for bigger files.
So I would add xml flag controlling that (do not think that GUI flag necessary), with default for example 2048 kb.

I have done similar optimization already for parsing statistics. It is not done if file is bigger then 2 megs by default, because it used mostly for editing and not used in viewing. This was done to reduce memory consumption.
Disabling of syntax highligthing I dont think woud give some benefits. For txt files it is done only for visible part, so cost nothing. All the rest of functions are done in separated threads, so multi core CPUs should not influence too much.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]