Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Dynamic allocation of arrays #11

Open
fabrizio-ottati opened this issue Dec 27, 2022 · 0 comments
Open

Dynamic allocation of arrays #11

fabrizio-ottati opened this issue Dec 27, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@fabrizio-ottati
Copy link
Member

Right now, the files are read in advance to count the number of events. Then, this number is used to allocate a NumPy array on the Python side, that is then filled by the C code. We would like to use dynamic memory allocation to generate the array as we read the file and, then, generate a NumPy array from it.

This was the initial implementation but it was too dumb, leading to poor performance.

@fabrizio-ottati fabrizio-ottati added the enhancement New feature or request label Dec 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant