node-modules/hessian.js

Improve performance

Closed this issue · 6 comments

Current benchmark:

image

Only encode number

image

The problem is Buffer.slice():

image

copy is not good enough, but is better than slice:

image

If socket.write() support start and end, there is no need to do slice().

socket.write(buf, start, end);

image

close for now.