Re: Support for packed int and long primitives in raw binary API

2017-09-29 Thread Valentin Kulichenko
Alexey, Any reason why you propose this only for raw data? I think this should be an option for binary marshaller (probably per type). If we also add special methods to Binarylizable, then they should be applied to both raw and non-raw data. BTW, there are couple other tickets regarding this, and

Re: Support for packed int and long primitives in raw binary API

2017-09-29 Thread Alexei Scherbakov
Dmitriy, Not arrays, just primitives. Using special binary representation, ints and longs can be represented by 1-9 bytes, depending on their cardinality. I want to add such implementation in raw binary API to help implementing custom serializers. 2017-09-29 15:12 GMT+03:00 Dmitriy Setrakyan

Re: Support for packed int and long primitives in raw binary API

2017-09-29 Thread Dmitriy Setrakyan
Alexey, are you talking about arrays of ints and longs? On Fri, Sep 29, 2017 at 3:29 AM, Alexei Scherbakov < alexey.scherbak...@gmail.com> wrote: > Guys, > > I notices we do not have support for packed ints and longs in raw binary > API [1] [2] > > Such methods are essential for implementing effi

Support for packed int and long primitives in raw binary API

2017-09-29 Thread Alexei Scherbakov
Guys, I notices we do not have support for packed ints and longs in raw binary API [1] [2] Such methods are essential for implementing efficient custom compression schemes. Their addition can simplify implementing custom serializers for the cases then default binary marshaller is not enough, wit