-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LRU implementation with hashmap and doubly linked list #701
Conversation
✅ Deploy Preview for reselect-docs canceled.
|
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. |
this doesn't seem to use the equality function? |
@EskiMojo14 Yes, the equality function can not be used with a hashmap, we need to iterate throgh the all values which will not give us any advantage our the existing memoiser |
@kuldeepsinghborana yeah, that's a problem, and that's what i was pointing to in the issue thread. We rely on equality checks, not a single key. |
@markerikson @EskiMojo14 @aryaemami59 To enhance predictability in the JSON string, we can implement key sorting, ensuring that keys are consistently ordered for every object. |
@kuldeepsinghborana no, just converting values into a string is potentially very expensive. Imagine doing a |
|
No description provided.