Current butils implementation does not support reading UTF-8 strings (e.g. reading such from riak breaks the protocol as s.length != Buffer.byteLength(s)). This commit uses native addon module https://github.com/lautis/wtf8 for encoding/decoding UTF-8. It also appears to be about 1.5 (read) to 2 (write) times faster than the butils JavaScript counterparts.
Btw. I did not mind @roidrage submitting the riakpbc spec path patch ;)
Current butils implementation does not support reading UTF-8 strings (e.g. reading such from riak breaks the protocol as s.length != Buffer.byteLength(s)). This commit uses native addon module https://github.com/lautis/wtf8 for encoding/decoding UTF-8. It also appears to be about 1.5 (read) to 2 (write) times faster than the butils JavaScript counterparts.
Btw. I did not mind @roidrage submitting the riakpbc spec path patch ;)