I can open files larger than 500MB just fine in Geany on my 4GB Linux laptop, 
(albiet with nothing else running, @AdamDanischewski close your browser :). It 
takes about 6 secs to open or to move the cursor to the end of the file.  That 
seems ok for 1/2 GB file on a laptop.  Scintilla uses two bytes of memory for 
each byte in the file, plus some for each line, so memory usage is at least 
double the file size and more is needed during opening to handle encoding 
conversions and UTF-8 validation.  As soon as the file is big enough that 
memory usage reaches 4GB, it causes swapping and it looks like it froze, but in 
fact it will come back after a time, its just that swapping to disk is 
slooooow.  Of course if you fill up swap all bets are off :)

@hdaz000700 Operations like copy and paste result in several copies in memory 
at once, reaching the limit of memory faster than the file itself does, and so 
starting swapping and so appearing to freeze sooner.  So if you are copying and 
pasting large amounts its not the same as opening the file.  This is made worse 
if the encoding of the material on the clipboard needs to be changed as thats 
another copy again.

None of the above is a surprise, exceeding memory is not a bug or issue we can 
do anything about.

@hdaz000700 What is interesting is the confused display shown in your 
screenshots where the end of line characters are not at the ends of the lines.  
That indicates that something else is going on as well.  

Thats what I'm trying to investigate, as it may indicate a bug that may be 
making your problem worse.

So for the moment all I'm interested in is if the file opens correctly in Geany 
and Scite, Linux and Windows.  Then we can look for causes if the file opens 
ok, taking it one step at a time to prevent getting confused again.



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1540#issuecomment-319546633

Reply via email to