#So multithreading isn't always better

9 messages · Page 1 of 1 (latest)

strange tartan
#

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

obtuse wolf
#

Githbu link?

#

let's see

obtuse wolf
#

also fyi it panics on my machine kek 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)

strange tartan
#

it was hardcoded for testing lol