biggestT / toney

online chinese tone helper
1 stars 4 forks source link

Fix memory leak #16

Open biggestT opened 11 years ago

biggestT commented 11 years ago

Using Chrome Devtools heap snapshot tool it can be seen that the application while running gathers up increasing amount of data that doesn't gets garbage collected. Addy Osmanis post helped finding this issue. http://addyosmani.com/blog/taming-the-unicorn-easing-javascript-memory-profiling-in-devtools/

Snapshot of the heapsnapshots constant increase:

memoryleak

biggestT commented 11 years ago

One of the objects that gathers up is the unnecessarily reloaded audio element ma_short.mp3 of about 5kB. Solving #15 would help also in this memory leak matter