Open ronag opened 1 month ago
It might be useful to elaborate. Why does this require new functionality in Buffer? Can't this be improved already?
(I am not being argumentative, this is a genuine question.)
How would you improve it? I think part of the problem is the number of times a js/c++ boundary needs to be crossed.
Maybe use fastcall for asciiWrite?
Implement as smarter
Buffer.write
to avoid a lot of overhead. Consider the following example:Could be reduced to:
and avoid a lot of js -> cpp calls