to speed up performance of set-with-expire #1173
kaitian521
started this conversation in
Ideas
Replies: 1 comment
-
Sure but it requires much more work and the performance gain is notable only with large values. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tested performance for expire-enabled and expire-disabled
Two tests have no sync, no expand, only overrideWrite
expire-enabled: 2253ms
expire-disabled:1748ms
This means expire-enabled is 28% slower than expire-disabled.
Maybe it exist some improvement here, by forbidding to allocate new MMBuffer.
For example, we make
isDataHolder is true
, pass the originvalue
tosetDataForKey
, when real write to file, carefully handle the 4 bytes const expire time.ONLY my ideas.
Beta Was this translation helpful? Give feedback.
All reactions