logoalt Hacker News

mr_toadtoday at 4:48 AM1 replyview on HN

Curious about which browser and hardware. In my experience browsers often choke on 0.5GB strings, or decide to kill the tab/proccess.


Replies

franciscoptoday at 9:37 AM

Yes, but I didn't read the full file, I kept the File reference and read the bytes in pages of 10MB IIRC to find all of the line break offsets. Then used those to slice and only read the relevant parts.