You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by GitBox <gi...@apache.org> on 2022/10/24 05:46:50 UTC

[GitHub] [incubator-kvrocks] PragmaTwice commented on issue #1033: Proposal: New encoding with compatibility to old data

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: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org