Open nh2 opened 2 months ago
Looks interesting! It would be cool to have a unit test for this and as noted it is important to remove the submodule change before merging. What are the performance implications?
There may also be some work required to bring pye57 up to date with other changes in Libe57format, particularly if this lands as part of a major revision.
What are the performance implications?
The only one we know of is that you can now use multiple threads for reading data out of the same E57.
Which can produce big speedups when being IO-bound by a single thread (e.g. when on a striped RAID or network file system, reading with N threads can be up to N times faster).
(Of course one could also open the same E57 multiple times to get parallel read access, but it's less convenient because there are more open file handles, and one needs to write the code in a coarser way instead of being able to use it locally in a function which has an already-opened E57.)
Draft PR for in-review
libE57Format
feature to allow parallel read access to the same E57 handle, e.g. with Python'sThreadPoolExecutor
: https://github.com/asmaloney/libE57Format/pull/292TODO