
Bun.js with Jarred Sumner - JSJ 584
JavaScript Jabber
BUN.file.text Returns a Promise
The threshold is something like on Linux, if you have an SSD and it's a fast hard drive, the threshold is somethinglike megabyte or so. So in BUN,. when you use like BUN.file and then you dot text or whatever, it will actually will look at the file size before deciding which one to do based on that characteristic. Or if it's a large file versus a small file? Yeah. The optimization there is that the operation doesn't go into the thread pool. It just does it right away. And then it puts it in the next tick of the event loopso that from the programming perspective, as a programmer, you feel like it's asynchronous.
00:00
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.