Skip to content

Figure out a way to speed up matrix operation in python #19

Open
@einarf

Description

@einarf

From #18

We are currently using pyrr for matrix operations. The main problem with pyrr is that it crates new instances for every calculation allocating a new ndarray. This is very expensive.

As an example:
https://github.com/adamlwgriffiths/Pyrr/blob/a86968b7ed242017247e27ac8a0e7b84bca0c333/pyrr/matrix44.py#L223-L236

numpy.dot has an out parameter to store the result in an existing ndarray. This avoids memory allocation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions