You probably already know this, but the moonchat still spawns way too many threads. I ran strace ./zig-out/bin/moonchat 2> blah.txt to collect a list of syscalls in a text file. I opened an image and submitted two text prompts and then quit. The program called clone3 22622 times.
You probably already know this, but the moonchat still spawns way too many threads. I ran
strace ./zig-out/bin/moonchat 2> blah.txtto collect a list of syscalls in a text file. I opened an image and submitted two text prompts and then quit. The program called clone3 22622 times.