Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Lists vs NumPy Arrays? #110

Open
dragonejt opened this issue Jan 26, 2024 · 1 comment
Open

Python Lists vs NumPy Arrays? #110

dragonejt opened this issue Jan 26, 2024 · 1 comment

Comments

@dragonejt
Copy link
Contributor

Is it worth switching from Python Lists to NumPy arrays as the basis for frames? OnAIR already seems to use NumPy in a lot of places, and NumPy arrays are more static and have more requirements than Python lists, such as the elements all needing to be all of the same type (floats). NumPy arrays are also based in C, which should allow for faster manipulations than with normal lists.

@khurrameycon
Copy link

Yes, numpy arrays support vectorized operations thus performance increases alot while using np.arrays instead of conventional lists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants