@quenty/memoize 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/memoize@1.3.0...@quenty/memoize@1.4.0) (2024-10-04)
7
+
8
+
9
+ ### Performance Improvements
10
+
11
+ * Increase cache size for tuple lookup ([5817760](https://github.com/Quenty/NevermoreEngine/commit/5817760b869500376f5654dfd312c2fdca2cef36))
12
+
13
+
14
+
15
+
16
+
6
17
  # [1.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/memoize@1.2.0...@quenty/memoize@1.3.0) (2024-09-25)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/memoize
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/memoize",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Memoization library",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,12 +25,12 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/loader": "^10.5.0",
29
- "@quenty/lrucache": "^1.3.0",
30
- "@quenty/tuple": "^1.2.0"
28
+ "@quenty/loader": "^10.6.0",
29
+ "@quenty/lrucache": "^1.4.0",
30
+ "@quenty/tuple": "^1.3.0"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "41715b15e2b48b2d22ff4f5277a8d4b7a0d32ef3"
35
+ "gitHead": "035abfa088c854a73e1c65b350267eaa17669646"
36
36
  }
@@ -26,6 +26,7 @@ function MemorizeUtils.memoize(func, cacheConfig)
26
26
  local cache = LRUCache.new(cacheConfig.maxSize)
27
27
 
28
28
  return function(...)
29
+ -- O(n)
29
30
  local params = tupleLookup:ToTuple(...)
30
31
 
31
32
  local found = cache:get(params)