[Geany] do not open oversize files

Lex Trotman elextr at xxxxx
Tue Jan 4 07:29:15 UTC 2011


2011/1/3 Krzysztof Żelechowski <giecrilj at stegny.2a.pl>:
> Geany should not try to open oversize files it is unable to digest.
>
> <URL: http://is.gd/jZn5B >
>
> The result is infinite thrashing and system unresponsive; the Process
> Monitor shows geany at 600MB swapped out.

How big is your file and how big is your memory?

Scintilla IIRC uses about 2*memory for buffering, so Geany needs that too.

Unfortunately there is no way of knowing how much memory is available,
the requests for such information just return infinite (at least on my
system) so there is no way for Geany/Scintilla to limit the usage.
>
> (The less tool has no problem with displaying this file.)

Less does not buffer the file, it reads line by line and prints it,
but you can't do that with an editor.

Cheers
Lex

>
> _______________________________________________
> Geany mailing list
> Geany at uvena.de
> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>



More information about the Users mailing list