I have no idea what did I do for the first half of the day.
Played more Yume 2kki. The slide is so fun :3
Continued optimizing uExpress. Apparently tseep is quite slow on initialization, so I switched Socket to use built-in event emitter, since there’s a ton of these being created. For long-running stuff it continues to be used. About 2k improvement.
Then I tried removing random parts from code to see for possible slow things and noticed that reading IP is literally 15k req/sec slower! I have no idea why, but res.getRemoteAddressAsText is super slow. I switched it to res.getRemoteAddress and made parsing it lazy and that improved speed by 5k. I really, really wanted to get that last 10k by somehow lazily reading IP but it seems quite literally impossible sadly.
Before:
After:
As I went to bed I got email that tests failed, and apparently they just hanged for 45 minutes, but I already published it to npm… Had to make Shy fix it for me while I’m in bed. Thankfully he did it and now I can rest.