jmdobry / CacheFactory

CacheFactory is a very simple and useful synchronous key-value store for the browser.
http://www.pseudobry.com/CacheFactory
MIT License
30 stars 18 forks source link

Performance issue in IE when getting/putting many objects #26

Open AnthonyCC opened 7 years ago

AnthonyCC commented 7 years ago

We notice a big hit on performance in IE 11 when we need to get/put ~1000 objects to the cache in a loop. After some analysis, it looks like the serialization process and the lruHeap are causing the slowness. We are using mem cache and are not using the LRU policy, can the serialization process and the lruHeap be disabled/bypass when they are not needed to be used?

jmdobry commented 7 years ago

Are you using in memory storage or local storage? What did you mean by "mem cache"? Can you produce a Plunker that demonstrates the issue?