Joined: 29 Sep 2004 |
Posts: 62 |
Location: �' AND sleep(21); /* |
|
 |
Posted: Wed Oct 05, 2005 4:47 am |
|
 |
 |
 |
 |
Monitoring memory usage when editing big files, I couldn't see any single activity that accounted for a big jump in memory usage. Saving big files after quite a few alterations seems to use an extra 2 to 6 MB, which sometimes returns back to pre-save levels, though at least half the time it didn't. Copying or pasting big blocks of code sometimes had an impact and sometimes didn't. Often pasting short strings (< 50 chars) overwriting existing texts in several different places at a time made a big difference in memory usage, sometimes adding as much as 1 MB for each paste. Again sometimes it would return to pre-paste levels, but often not. Text editing had a varied effect, with changes to existing code and variables seeming to have the greatest effect. Debugging has remarkably little effect on memory, almost always recovering back to pre-debug levels. My gut feel is that the memory increase could be due to undo history, because it seems to get worse the longer you keep editing, and the increase seems to grow more rapidly with continued editing (hope I'm making sense). On small files the increase in memory usage is hardly noticeable, but in big files the increase is quite rapid, reaching unusable levels within a relatively short time. I've got into the habit of restarting PhpED after every 30 mins or so, or after an intense editing period.
|
|