Post B4b0lWgGSabtQ9s0jw by dysfun@social.treehouse.systems
 (DIR) More posts by dysfun@social.treehouse.systems
 (DIR) Post #B4azAsjfOjJN9cQMvg by jsbarretto@social.coop
       1 likes, 0 repeats
       
       I made project-wide search in my text editor asynchronous so results stream in from worker threads without blocking the main thread. However, searching is so fast that it finishes before the next frame renders, even on the largest project I work on, so it was entirely wasted effort.
       
 (DIR) Post #B4azJW6AvmChYM4On2 by natty@astolfo.social
       0 likes, 0 repeats
       
       @jsbarretto@social.coop it's not really a waste when the async I/O is likely the reason the frame was rendered on time
       
 (DIR) Post #B4azbZ2IkQzlsNrbbk by jsbarretto@social.coop
       1 likes, 0 repeats
       
       @natty The I/O isn't itself meaningly faster (workers still block on file access, so it's only asynchronous from the perspective of the main threads). But I was hoping to see the number of results tick up in a more satisfying way instead of appearing instantly. I really that this is a silly thing to be sad about though
       
 (DIR) Post #B4b0iPi1vKLSvkDCCG by hipsterelectron@circumstances.run
       1 likes, 0 repeats
       
       @jsbarretto @natty local block i/o is not likely to receive significant benefit from non-blocking access
       
 (DIR) Post #B4b0iRIa0vAxrOJto0 by hipsterelectron@circumstances.run
       1 likes, 0 repeats
       
       @jsbarretto @natty context switching can be pretty harmful and outside of extremely specialized interfaces there's no conception i've found that effectively asynchronizes this process
       
 (DIR) Post #B4b0lWgGSabtQ9s0jw by dysfun@social.treehouse.systems
       0 likes, 0 repeats
       
       @jsbarretto @natty do a tokio
       
 (DIR) Post #B4b0lWsfiSXE2dfv4y by jsbarretto@social.coop
       0 likes, 0 repeats
       
       @dysfun @natty Ah yes, the "I hope spawning a thread is cheaper than reading this tiny text file from the fs cache" gamble
       
 (DIR) Post #B4b0lX68uNJIiPyg4m by dysfun@social.treehouse.systems
       1 likes, 0 repeats
       
       @jsbarretto @natty a bit relevant to me this week as i build a new foundation for async i/o.in C.