nsfw_alt_2023@lemmynsfw.comtoYou Should Know@lemmy.world•YSK: While you're on Lemmy/Kbin/Fediverse, you're not "the product" but you're also not "the customer".English
6·
1 year agoAt least you have the self awareness that you are a selfish asshole, so that’s something I guess?
I’m expecting that JSON parsing is a huge overhead with the fediverse. I work on a SAAS that needs to do all its internal processing in under 10 ms, and serializing/deserializing ends up being a sizable chunk of server time. I saw a 40% reduction in runtime using simdjson for deserializing, and there exists a rust crate for it, but I haven’t had time to look the Lemmy code over.
Can anyone with an overloaded instance get on their command line and gather a decent flamegraph so the performance folks can aim optimizations in the right direction?
https://github.com/brendangregg/FlameGraph