G-Node / nix

Neuroscience information exchange format
https://readthedocs.org/projects/nixio/
Other
66 stars 36 forks source link

Appending objects to groups should not use ID getters #673

Closed achilleas-k closed 7 years ago

achilleas-k commented 7 years ago

The append methods for the Group object should not use IDs for retrieving objects from the parent block. Using the ID to check if the object exists and for retrieving it for append causes the operation to become slower as the number of objects increases.

Ideally, if an object is provided to the add method, its name should be used to retrieve the object from the parent block and the ID should be compared to make sure it is the same object. This is similar to how dataArrays() appends multiple items, but we should also include an ID comparison (see #672).

jgrewe commented 7 years ago

solved via #679