← Back to context

Comment by staticassertion

1 day ago

It was an express server. I don't think c10k is particularly interesting since it mostly just involves having cooperating scheduling. Doesn't really impact flat memory overhead etc. I mean, the binary for node alone, without any libraries etc, is larger than the produced rust binary.

Before Node/libuv holding open connections was really expensive resource-wise, dropping that cost to <30KB per connection was massive.

The node binary is huge due to inclusion of i18n libraries to support the native APIs, and should have little impact on memory consumption. There is a way to opt out.