4 ms·
"Spawn a few threads if you have thousands of files to open." You've gone so deep into the trees that you can't see the forest. Creating a workaround wrapper or
by RyanHamilton 5y ago
"Spawn a few threads if you have thousands of files to open."
You've gone so deep into the trees that you can't see the forest. Creating a workaround wrapper or spawning unnecessary threads is a bad idea. You want async io or io_uring.
- otterley 5y ago“Proprietary software” suggests the commenter did not have the source code or resources to do that. Sometimes you just have to make the best hack you can.
- secondcoming 5y agoI was under the impression that Linux does not support async file access and so people have to fake it with threads.
- coder543 5y agoThis is no longer true since the arrival of io_uring, and that's why the person you replied to referenced it.