Robert Nagy
Robert Nagy
I like it!
If we take the MDN example and serverify it: ```js const server = http.listen({ port }) server.addEventListener('fetch', (event) => { // Prevent the default, and handle the request ourselves. event.respondWith((async...
No that's not what I had in mind.
Pre allocate a big buffer, write to it using `Buffer.write` and then slice it of and return. No intermediate small strings or buffers.
Not quite. I'll try to make a demonstration.
So it seems you are right in terms of performance being roughly the same. But I would still argue that memory usage and gc pressure should be lower (3.06 kb...
Anyone care to open a PR? I think this could be a simple case of just switching to `.set(srcBuffer)` (instead of using native methods) in the case where the total...
I think the fast methods won't get called with anything that doesn't fit into uint32.
It's the slow methods that need fixing I guess. Should we even support 4G+ Buffers? @jasnell
Streams will start the stream if on is called with `'data'` that's why the EE prototype is used.