both images are the same program, the faster uses one thread and the slower uses 12 (my cpu has 24)
the funny thing is, when tested on windows you see the opposite, where the time halves with multithread enabled. anyone got any insights as to why linux would be so much slower to spawn threads? or is windows just so bad that the overhead of multiple threads is faster than waiting for cpu time on a single thread
#So multithreading isn't always better
9 messages · Page 1 of 1 (latest)
Githbu link?
nvm stole this one https://github.com/Vortetty/YATFPBNWS
let's see
also fyi it panics on my machine
kind of works after changing the display path
No idea where the multithreading part is, did you implement any of that? I saw that the sysinfo crate has a default feature enabled so I turned that off, only cut my speed to ~110ms tho (~160ms before)
ah yeah
it was hardcoded for testing lol