LaKraven / LKSL

LaKraven Studios Standard Library
http://otapi.com
Other
51 stars 15 forks source link

Automated Smart Compacting of TLKListBase<T> #31

Closed LaKraven closed 9 years ago

LaKraven commented 9 years ago

Make TLKListBase<T> keep track of the last Reference Times at which it was respectively Expanded and where its Capacity exceeded its Count by more than the (Threshold + Round(Multiplier)).

Allow a time (in seconds) to be defined after which the TLKListBase<T> will automatically Compact itself on the Addition/Insertion/Deletion of an Item.

This will help prevent persisted Lists from sitting there consuming vastly more memory than they require when their load reduces over time

LaKraven commented 9 years ago

Completed in 5365861a9f