dai-shi / proxy-compare

Compare two objects using accessed properties with Proxy
https://www.npmjs.com/package/proxy-compare
MIT License
285 stars 18 forks source link

fix: cache unfreeze results #44

Closed dai-shi closed 2 years ago

dai-shi commented 2 years ago

We unfreeze a frozen object every time. This causes a performance bottleneck. https://github.com/pmndrs/valtio/issues/519 This PR fixes it by caching the results.

codesandbox-ci[bot] commented 2 years 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 bae1f2932a2c9df33b697906105a457710907b2d:

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration
React Configuration
React Typescript Configuration