Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

memoizerific

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memoizerific - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc