PragmaTwice commented on issue #1033: URL: https://github.com/apache/incubator-kvrocks/issues/1033#issuecomment-1288450382
> I dislike the idea that using varint to store `expire`. The `varint` is sutable for "value tends to be small", maybe suitable for size, but using it as timestamp may be both harms cpu and storage. > > 32bits' size is ok in most cases. For a recently timestamp (~2022 AD), the value is about 2^31. If using varint encoding, the data will be about 5 bytes, which is less than 8 bytes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
