Commit d4fcb23e authored by Nick Apperson's avatar Nick Apperson Committed by Trevor Norris
Browse files

buffer: improve {read,write}{U}Int* methods



Increase the performance and simplify the logic of Buffer#write{U}Int*
and Buffer#read{U}Int* methods by placing the byte manipulation code
directly inline.

Also improve the speed of buffer-write benchmarks by creating a new
call directly to each method by using Function() instead of calling by
buff[fn].

Signed-off-by: default avatarTrevor Norris <trev.norris@gmail.com>
parent c7214fe3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment