Partial File Loading
Posted: Fri Nov 21, 2003 5:00 am
if this has been suggested, sorry for not seeing the existing thread.
The Problem:
Opening large files makes textpad go non responsive as it tries to load the file into memory.
Possible sollution:
Only load the first x megabytes of the file (when opening) the file
eg - 100 meg log file
user opens it
textpad load the first 2 meg.
as the user scrolls down (or across) the log textpad keeps a track of where they are in the file - loading the relavant portions of the files as they go
so in effect - if you loaded up a 100 meg file, it would load 2 meg at a time as you scrolled down.
as for updated files, the trick will still work.
as for "the size" of the files to do this, let it be user definable.
The End Result:
you will be able to load up 1gb files, make changes in your favourite editor and save them without hassle.
what do you think? a good or bad idea?
The Problem:
Opening large files makes textpad go non responsive as it tries to load the file into memory.
Possible sollution:
Only load the first x megabytes of the file (when opening) the file
eg - 100 meg log file
user opens it
textpad load the first 2 meg.
as the user scrolls down (or across) the log textpad keeps a track of where they are in the file - loading the relavant portions of the files as they go
so in effect - if you loaded up a 100 meg file, it would load 2 meg at a time as you scrolled down.
as for updated files, the trick will still work.
as for "the size" of the files to do this, let it be user definable.
The End Result:
you will be able to load up 1gb files, make changes in your favourite editor and save them without hassle.
what do you think? a good or bad idea?