memoizerific
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "memoizerific", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Fastest, smallest, most-efficient JavaScript memoization lib to memoize JS functions", | ||
@@ -5,0 +5,0 @@ "author": "@thinkloop", |
@@ -6,5 +6,5 @@ # Memoizerific.js | ||
For the browser and nodejs. | ||
Made for the browser and nodejs. | ||
Memoization is the process of caching function results, so that they can be returned cheaply, | ||
Memoization is the process of caching function results, so that they can be returned cheaply | ||
without re-running the function when it is called again with the same arguments. | ||
@@ -45,2 +45,3 @@ | ||
The cache works using LRU logic, purging the least recently used results when the limit is reached. | ||
For example: | ||
@@ -133,7 +134,7 @@ ```javascript | ||
While LRU-Memoize performed quite well with few arguments and lots of cache hits, it quickly started to fall apart as the environment became more challenging. | ||
At 4+ arguments it was 5x-10x-20x slower than the other contenders, and began to hit severe performance issues that could potentially cause real-world problems. | ||
At 4+ arguments, it was 5x-10x-20x slower than the other contenders, and began to hit severe performance issues that could potentially cause real-world problems. | ||
I would not recommend it for heavy production use. | ||
Memoizee came in a solid second place, around 31% less performant than Memoizerific. | ||
In most scenarios this would not be very noticeable. In some demanding ones, | ||
In most scenarios this will not be very noticeable. In other especially demanding ones, | ||
such as memoizing in a loop, or through a long recursion chain, it might be. | ||
@@ -140,0 +141,0 @@ Importantly though, it degraded very gracefully, and remained within sub 1s levels almost all the time. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
142
483760