[Geany] do not open oversize files

Duke Normandin dukeofperl at xxxxx
Tue Jan 4 16:23:41 UTC 2011


On Tue, 4 Jan 2011, Krzysztof Żelechowski wrote:

> Dnia wtorek, 4 stycznia 2011 o 11:05:47 Frank Lanitz napisał(a):
> > >> 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.
> > > One cannot inquire for available memory but one can inquire for Physical RAM.  If file size is greater than 2 * RAM, ask the operator.
> >
> > I think this will cause even more confusing than a slow running Geany on
> > a swapping system. Not every system does have a swap at all or at least
> > one which is twice as RAM-size. Also I could imagine not all system does
> > have a trust able syscall to figure out the physical memory.-
>
> I obviously meant RAM / 2, sorry.
> Most systems support querying the amount of physical memory.
> Regarding the system that do not, well, let them hang…

Can emacs load your file? Try it and get back to us...

-- 
Duke


More information about the Users mailing list