I need to scan very large JSONL files efficiently and am considering a parallel grep-style approach over line-delimited text.

Would love to hear how you would design it.

you are viewing a single comment's thread
view the rest of the comments
[–] 0 points 7 months ago (1 child)

Don't have a thread doing line by line file reads, just to have it in memory. There is a piece of software optimized for tasks like this, the OS.
Just mmap your file and start processing.

  • source
  • parent
  • hideshow 1 child comment
  • load more comments (1 reply)