Open TomNicholas opened 8 months ago
Since we merged #107, the context of this suggestion has changed. Now, in order to replace the ChunkManifest
class one would need to write something that could replicate these features of the current triple-numpy-array solution:
The reasons why this idea might still be of interest are:
Probably rewriting in rust is overkill though, and we can achieve the above in python + using numpy rust bindings.
cc @jackkelly @emfdavid
The code in the
manifests.manifest.py
file is focused on input validation, creating an immutable data structure (theChunkManifest
), and merging multipleChunkManifests
together performantly (i.e. concatenating them). The validation is done using pydantic, which already uses Rust internally.We might imagine re-implementing the core manifest logic in rust, then using python bindings to wrap it up into a python array that xarray can wrap. I have no idea if this is really a performance limitation, but it might be.