phiresky
lemmy performance connoisseur.
check my github: https://github.com/phiresky
this is what i like to see:
- 4 Posts
- 8 Comments
- phiresky@lemmy.worldtoProgramming@programming.dev•Big projects are ditching TypeScript… wtf? - The Code Report61·2 years ago
If that’s what this video is about then it’s a lie (I’m not going to watch that bait). Svelte did not move away from Typescript. Svelte just moved from TSs custom syntax to TS-in-JSDoc. They are still using the same types and TS compiler to fully enforce type checking their code.
Their reason isn’t that TS is bad, just that the IDE experience is bad redirecting you to .d.ts instead of source files for libraries.
- phiresky@lemmy.worldtoLemmy.World Announcements@lemmy.world•Lemmy.world status update 2023-07-052·2 years ago
it’s not really officially supported, but both lemmy.world and lemm.ee are running with this configuration (multiple lemmy-ui and lemmy_server instances, one pg database).
- phiresky@lemmy.worldtoLemmy.World Announcements@lemmy.world•Lemmy.world status update 2023-07-058903·2 years ago
server load is too low, everyone upvote more stuff so i can optimize more
edit: guess there is some more work to be done 😁
- phiresky@lemmy.worldtoLemmy.World Announcements@lemmy.world•Federation troubleshooting31·2 years ago
I want to say that with 0.18 the definition of federation_workers has changed massively due to the improved queue. As in, whatever is good in 0.17 is not necessarily good for 0.18.
On 0.18, it probably makes sense to have it around 100 to 10’000. Setting it to 0 is also be an option (unlimited, that’s the default). Anything much higher is probably a bad idea.
On 0.18, retry tasks are also split into a separate queue which should improve things in general.
0 might have perf issues since every federation task is one task with the same scheduling priority as any other async task (like ui / user api requests). So if 10k federation tasks are running and 100 api requests are running then tokio will schedule the api requests with probability 100 / (10k+100) (if everything is cpu-limited). (I think, not 100% sure how tokio scheduling works)
- phiresky@lemmy.worldtoNo Stupid Questions@lemmy.world•Are we sticking to communities?English6·2 years ago
well internally (in the context of activitypub) they are called “groups” 🤓
someone has done it, there’s a PR here: https://github.com/LemmyNet/lemmy/pull/3289
- phiresky@lemmy.worldtoLemmy.World Announcements@lemmy.world•Workaround for the performance issue with posting in large communitiesEnglish61·2 years ago
In general websockets scale badly because the server has to keep open a connection and a fair amount of state. You also can’t really cache websocket messages like you can normal HTTP responses. Not sure which reasons apply to Lemmy though.
high quality template: