Skip to content

Conversation

@ra1028
Copy link
Owner

@ra1028 ra1028 commented May 15, 2023

Pull Request Type

  • Bug fix
  • New feature
  • Refactoring
  • Documentation update
  • Chore

Description

The Scoped override implemented in #47 didn't allow taking a snapshot for the entire atoms state because the state management was not purely centralized in that way. There was also concern about possible performance degradation due to deep AtomScope nesting.
This PR allows overridden atoms to be cashed into the centralized store by identifying them by unique key of scopes, and snapshot of entire atom stats can now be taken from anywhere in constant time.

@ra1028 ra1028 marked this pull request as draft May 15, 2023 14:52
@ra1028 ra1028 marked this pull request as ready for review May 17, 2023 03:44
@ra1028 ra1028 merged commit 55bd331 into main May 17, 2023
@ra1028 ra1028 deleted the flatten-scoped-stores branch May 17, 2023 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants