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

Consider to use numpy for faster matrix operations #4

Open
stsdc opened this issue Feb 8, 2021 · 0 comments
Open

Consider to use numpy for faster matrix operations #4

stsdc opened this issue Feb 8, 2021 · 0 comments

Comments

@stsdc
Copy link

stsdc commented Feb 8, 2021

First of all I want to thank You for such a wonderful library. Even 0.0.2 version is pretty cool! 😄

I'm using it to reactively display some low latency animation based on sound. I process audio and put a result of it into a numpy array, which allows to make all the operations really fast compared to standard Python functions.

However the bottleneck is that I have to convert numpy array to Python list which is really time consuming for a hundreds of pixels.

        frame  = np.zeros((32, 16, 3), dtype=np.uint8)
        self.next_frame(frame.tolist())

I'm wondering if it's possible to speedup things and add support for a numpy?

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

1 participant