On 28/04/2015 04:43, Marvin Humphrey wrote:
For now, I don't think adding encoders/decoders for primitive types onto
Blob/ByteBuf is pressing, and I suggest we delay that discussion.

Ultimately, I'd like to have something that can also be used for arrays of other number types. Maybe with an API similar to JavaScript's TypedArray or DataView:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays

But with a clear distinction between immutable and mutable objects and the ability to append data.

Lucy uses the NumUtil_ inline routines extensively and in
performance-sensitive locations like BitVector.  It won't be able to use
methods on ByteBuf or Blob or their iterators without taking a speed hit.

Yes, I realized that, too.

For now, I propose that we move the NumberUtils module back to Lucy, where it
will be private.

+1

Nick

Reply via email to