hdmf icon indicating copy to clipboard operation
hdmf copied to clipboard

[Bug]: Convert_dtype on a list/tuple of many items is not performant

Open rly opened this issue 2 years ago • 0 comments

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

rly avatar Oct 06 '23 20:10 rly