dai-shi / proxy-memoize

Intuitive magical memoization library with Proxy and WeakMap
http://proxy-memoize.js.org/
MIT License
719 stars 16 forks source link

fix: use target cache for better performance #72

Closed Aslemammad closed 1 year ago

Aslemammad commented 1 year ago

proxy-memoize@^2.0.3: image

proxy-memoize@https://pkg.csb.dev/dai-shi/proxy-memoize/commit/7c27c228/proxy-memoize: image

codesandbox-ci[bot] commented 1 year ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 7c27c228e9c4db3a3e55a0d4f3947f9a7a8cf116:

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration
React Configuration
React Typescript Configuration
dai-shi commented 1 year ago

Does it actually improve performance? Can you put screenshots in the description?

Aslemammad commented 1 year ago

proxy-memoize@^2.0.3: image

proxy-memoize@https://pkg.csb.dev/dai-shi/proxy-memoize/commit/7c27c228/proxy-memoize: image

Aslemammad commented 1 year ago

updated the description.