QuinnDamerell / Baconit

A beatiful, powerful, reddit client for Windows 10.
https://www.reddit.com/r/BaconitDev/
GNU General Public License v2.0
242 stars 80 forks source link

Make HashList not take 2x memory, only keep track of the last element we want to remove. #1

Closed QuinnDamerell closed 9 years ago

QuinnDamerell commented 9 years ago

Current the HastList class will consume 2x the memory since the strings are stored in the dictionary and the list. If we only keep track of the last element and a pointer to the next to last element we can reduce that overhead.