Martijn van Iersel:

> One possible application: I frequently work with DNA sequence files at
> work, which are plain text files and can be over 1 Gb. I usually open
> them with ultra-edit.
> ...
> I've noticed SciTE invariably crashes when you try to go over its
> limits. I do understand the argument that SciTE wasn't intended for
> large files, but SciTE should exit more gracefully IMHO...

   Files are stored in Scintilla with one style byte for every data
byte so a 1GB file will take around 2 GB in memory plus extra memory
for line positions and other data.  Possibly much more with layout
caching turned on. On 32 bit Windows you only get 2 GB of user space
(3 GB with the /3GB switch in boot.ini). You may be running into VM
exhaustion rather than normal memory exhaustion or Scintilla may be
wrapping indexes (of type int) around into negative numbers.

   On GTK+, the system policy is "If any call to allocate memory
fails, the application is terminated."
http://developer.gnome.org/doc/API/2.0/glib/glib-Memory-Allocation.html

   I have no intention of working on these issues but will accept
simple patches that improve the situation.

   Neil

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to