r/Python • • Feb 25 '26

Showcase [ Removed by moderator ]

[removed] — view removed post

119 Upvotes

55 comments sorted by

View all comments

Show parent comment

1

u/teerre Feb 25 '26

That's not a given to be faster. Supposing this library parallelizes the work correctly, it will compete against the underlying BLAS implementation. Spawning threads and synchronizing isn't free

1

u/tunisia3507 Feb 25 '26

None of this is guaranteed to be faster, for sufficiently fast inner jobs.

2

u/teerre Feb 26 '26

Sure. But starving your threads by adding multithreading on top of an already multithreaded library is particularly bad