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

File store uses files exclusively #680

Merged

Conversation

michaelwilner
Copy link
Contributor

In store/file/file_store.go there is currently a sync.Map that maintains the offset of every single message in the file store.

Sessions that get up into the tens or hundreds of millions of messages grow this map immensely! There's no need to keep this around in memory - when iterating through messages, you're going to disk anyway, and it is a very cheap I/O operation to scan through the header file as well to avoid bloating memory

@ackleymi ackleymi merged commit 5185ff8 into quickfixgo:main Nov 25, 2024
47 checks passed
@michaelwilner michaelwilner deleted the file-store-uses-files-exclusively branch November 25, 2024 23:20
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