[Tarantool-patches] [PATCH vshard 1/1] router: bucket_id_strcrc32 and bucket_id_mpcrc32

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Thu Feb 27 03:25:18 MSK 2020



On 26/02/2020 09:20, Konstantin Osipov wrote:
> * Vladislav Shpilevoy <v.shpilevoy at tarantool.org> [20/02/26 09:31]:
>> Closes #207
> 
> While you're at it, is this hardware crc32?

Yes, this is hardware, when possible. And it is in C. See crc32.c
files (there are two of them).

> 
> Did you consider implementing it in C as a server built-in to
> avoid using messagepack as an interim representation?

MessagePack is chosen not because of speed (although it is the
same as with tostring(), according to my benches, and even a little
faster on numbers), but because of bad representation of Lua cdata
numbers in strings.


More information about the Tarantool-patches mailing list