Repository navigation
v0.2.0
A performance release: faster reads across the board, no API changes. Numbers
are means on an Apple M3 Pro under CPython 3.13; full tables are in
benchmarks/RESULTS.md.
Performance
- ASE conversion (
oxyz.ase.read) is 18–57% faster: the eager list read now
parses on every core, and species map to atomic numbers through a cached
lookup so ASE skips its own per-atom symbol parsing. Reading the 4 × 100 000
atom file toase.Atomsdrops 167 → 71 ms — now faster than the libAtoms C
parser's ASE plugin, which 0.1.0 was slower than on that workload. - Files with a few very large frames now scale past four threads: a frame's
atom rows are split across workers (4 × 100 000 atom read, all cores,
36 → 27 ms). - Batched reads (
read_batch,iter_batches) reuse one worker pool across
batches instead of rebuilding it per batch, restoring thread scaling
(2 000-frame batched read, all cores, 15.8 → 12.4 ms). - The atom-row parser tokenises raw bytes, validating UTF-8 only for string
cells, lifting single-thread parse throughput ~15%.
Changed
- A non-UTF-8 byte in a numeric atom cell now raises
ParseError(an invalid
value) rather than anOSError; a non-UTF-8 byte in a string cell still
raises the I/O error, as before. Atom rows are now tokenised as bytes, so
only string cells are validated as UTF-8.