3 ms·
Hi there, > ...we'd love to hear from the community what you'd like to see. In our tests, fetch on Deno was wayy faster than undici fetch that now has been me
by ignoramous 5y ago
Hi there,
> ...we'd love to hear from the community what you'd like to see.
In our tests, fetch on Deno was wayy faster than undici fetch that now has been merged into nodejs.
I couldn't figure out why that was case, but forwarding requests over node's http2 client (instead of undici fetch) then had comparable (but not as fast) performance as Deno (presumably because our hand rolled impl lacked connection pooling).
- inglor 5y agoThis is very new and the implementation _just_ landed today so it makes sense Deno would be faster with an API they have been working on for years. I am confident that Node's implementation will _eventually_ have comparable performance. That said: please do open an issue in the undici repo at https://nodejs.org/node/undici https://nodejs.org/node/undici so this gets tracked.
- mstade 5y agoThat URL gives me a 404 – should it be https://github.com/nodejs/undici https://github.com/nodejs/undici ?
- ignoramous 5y agoThanks. Filed: https://github.com/nodejs/undici/issues/1203 https://github.com/nodejs/undici/issues/1203
- thysultan 5y agoDeno's is probably written in rust via the tokio rust crate. This version of fetch in NodeJS is written in JavaScript. It would probably get upgraded to C++ in due time once it's mature enough.