hdmf
hdmf copied to clipboard
[Bug]: Convert_dtype on a list/tuple of many items is not performant
What happened?
These lines convert each element of a list/tuple in a for loop. This could be more performant. Observed in Frank Lab conversions.
https://github.com/hdmf-dev/hdmf/blob/dev/src/hdmf/build/objectmapper.py#L234-L236
Steps to Reproduce
Write a timeseries where the timestamps are stored in a list of a million ints or floats.
Traceback
No response
Operating System
macOS
Python Executable
Conda
Python Version
3.11
Package Versions
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
- [X] Have you checked the Contributing document?
- [X] Have you ensured this bug was not already reported?