Skip to content
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

Feat: Keep current value of TypedValue in cache for faster reads #593

Merged
merged 13 commits into from
Oct 24, 2023

Conversation

hmoog
Copy link
Contributor

@hmoog hmoog commented Oct 21, 2023

This PR introduces a cache of the current value / state of the TypedValue in memory. By leveraging this cache, we can reduce the need for constant disk access when reading from these values.

Since all write operations are still synchronous and conducted through the TypedValue abstraction, the cached value is always kept in sync with the actual data.

It additionally adds a Compute method that allows us to read and change a TypedValue instance atomically.

@hmoog hmoog changed the title Feat: Cached reads for TypedValue Feat: Add cache to TypedValue Oct 21, 2023
@hmoog hmoog changed the title Feat: Add cache to TypedValue Feat: Keep current value of TypedValue in cache Oct 21, 2023
@hmoog hmoog changed the title Feat: Keep current value of TypedValue in cache Feat: Keep current value of TypedValue in cache for faster reads Oct 22, 2023
@hmoog hmoog marked this pull request as draft October 23, 2023 14:06
@hmoog hmoog changed the base branch from develop to fix/linter October 24, 2023 12:16
@hmoog hmoog marked this pull request as ready for review October 24, 2023 12:51
Base automatically changed from fix/linter to develop October 24, 2023 14:05
@hmoog hmoog merged commit 47c6046 into develop Oct 24, 2023
52 checks passed
@hmoog hmoog deleted the feat/typedvalue-cached branch October 24, 2023 19:39
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