Libraries, speed & errors

Large files & performance

Chunked reads, read-only and write-only modes, parallel jobs and benchmarks.

Large-file techniques: read_only mode streams rows instead of loading the workbook, write_only and constant_memory modes stream rows out, and chunking keeps memory flat.Large-file techniques: read_only mode streams rows instead of loading the workbook, write_only and constant_memory modes stream rows out, and chunking keeps memory flat.stream it instead of holding itread_only=Truestream rows inflat memorywrite_onlystream rows outno random accessChunksprocess in batchesor in parallel

Start with the full guides

The long-form treatment of large files & performance, with the reasoning the shorter pages assume.

Step-by-step how-tos

One task each, with code you can copy, run and adapt.

When it breaks

The errors this topic produces, with the cause explained rather than just the fix.

Follow it through a track

Prefer an ordered route? These tracks cover large files & performance along the way, in the order that builds on itself.

Related topics

Subjects that keep turning up on the same pages as this one, most overlap first.

Large files & performance is part of Libraries, speed & errors.