Comparing version 0.6.2 to 0.6.3
@@ -8,2 +8,6 @@ "use strict"; | ||
// Don't let the emptySetPool or entryPool grow larger than this size, | ||
// since unconstrained pool growth could lead to memory leaks. | ||
exports.POOL_TARGET_SIZE = 100; | ||
// Since this package might be used browsers, we should avoid using the | ||
@@ -62,3 +66,5 @@ // Node built-in assert module. | ||
assert(entry.dirtyChildren === null); | ||
entryPool.push(entry); | ||
if (entryPool.length < exports.POOL_TARGET_SIZE) { | ||
entryPool.push(entry); | ||
} | ||
} | ||
@@ -217,3 +223,5 @@ | ||
if (dc.size === 0) { | ||
emptySetPool.push(dc); | ||
if (emptySetPool.length < exports.POOL_TARGET_SIZE) { | ||
emptySetPool.push(dc); | ||
} | ||
entry.dirtyChildren = null; | ||
@@ -220,0 +228,0 @@ } |
{ | ||
"name": "optimism", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"author": "Ben Newman <ben@benjamn.com>", | ||
@@ -5,0 +5,0 @@ "description": "Composable reactive caching with efficient invalidation.", |
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
19048
512