kh90909 / OakTerm

Serial terminal for the Digistump Oak over the Particle Cloud
8 stars 2 forks source link

Maximum terminal line limit #51

Open emcniece opened 8 years ago

emcniece commented 8 years ago

To limit browser resource consumption, it may be necessary to limit the total number of lines printed in the terminal area. This may be nice to have as an adjustable option.

kh90909 commented 8 years ago

Do you have idea of how many lines it would take for things to become problematic? With browser tabs typically using tens of megabytes of RAM, it's hard to imagine even 100,000 lines of text making much a dent in that, but I really don't know how much overhead is involved with representing each HTML element in the browser.

emcniece commented 8 years ago

Sometimes memory leaks can happen when jQuery tracks new elements that are added to the DOM. In any case, it would be best to run a test for several hours to see if we have any runaway effects.

emcniece commented 8 years ago

After a 3h test, memory consumption increased from 75Kb (start) to 85Kb. Terminal contained 5300 lines at termination. At this time the memory footprint appears to be minimal, so this can remain as an enhancement (not a bug).