Does anyone use beta wasteof these days?

comments (single view)

I was the one to find the bug :3 (it wasn’t really a memory leak, but the slowness was caused by a lot of promises waiting to return for a request to finish)

if jeffalo made requests be async couldn’t the problems be fixed?

It was a problem with the way jeffalo implemented a hook from a 3rd party library, there was only meant to be one which wouldn’t be a problem, but a new one was getting created on every post render. The way the library handles it is it runs one hook callback at a time and the server has to wait for all the hooks to be ran before the post could be added to the final page. After about 18 hours of non-stop requests the server was taking upwards of 500ms to render a single post due to how many hooks had been created and never deleted from previous requests.

I don’t really understand but cool

View all comments