European-XFEL / h5glance

Explore HDF5 files in terminal & HTML views
BSD 3-Clause "New" or "Revised" License
65 stars 7 forks source link

WIP: Incremental display of tree in the terminal #22

Closed takluyver closed 1 year ago

takluyver commented 4 years ago

When you do h5glance foo.h5, the code in master goes through all the groups in the file recursively, drawing the terminal tree, and then dumps it into a pager. This branch generates the tree as it goes, and pipes it into the pager. On a file with a few thousand objects, this means a nearly instantaneous view rather than waiting ~1 second.

However, it also has downsides:

So I'm not sure if I should go ahead with this, or stick to what it does in master.

takluyver commented 1 year ago

Closing this as not the direction we're going. We added a -d or --depth option in #27, giving us at least some way to cope with massive structures of nested groups. In our (EuXFEL) use cases so far, what we have seems to be good enough.