pynwb icon indicating copy to clipboard operation
pynwb copied to clipboard

[Feature]: Importing pynwb creates redundant type maps

Open rly opened this issue 4 months ago • 1 comments

What would you like to see added to PyNWB?

During import of pynwb, 5 different type maps are created, and the same pynwb class is registered 3 times and the same hdmf class is registered 5 times. This seems unnecessary and because, copying type maps is slow, I think this is a major contributor to the slow import. Related to #1487.

Is your feature request related to a problem?

No response

What solution would you like?

Remove redundant creation of type maps

Do you have any interest in helping implement the feature?

Yes.

Code of Conduct

rly avatar Aug 13 '25 00:08 rly

Also should investigate whether deepcopying the global typemap in get_type_map is necessary.

rly avatar Aug 13 '25 00:08 rly