Skip to content

Conversation

@AlCalzone
Copy link
Owner

@AlCalzone AlCalzone commented Dec 27, 2021

This change massively improves the write performance by avoiding unnecessary stringifies.

Test with 10 runs, 1000 keys, which are deleted/changed randomly 100k times:
Before: 2226.77 changes/s
After: 69541.03 changes/s

fixes: #145
fixes: #266

@AlCalzone AlCalzone marked this pull request as ready for review December 27, 2021 16:35
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.

clear() should simply truncate the AOF file Experiment: de-duplicate buffered commands, stringify lazy

2 participants