-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: Remove extra alloc + memcpy from bind wrappers
Both py_cr_mesh_bind_vertex_buf and py_cr_mesh_bind_faces allocated a temporary buffer needlessly. These don't actually amount to much of anything in the final runtime, the time delta before and after this patch is dwarfed by the time we spend in Python trying to shuffle the data into a suitable format.
- Loading branch information
Showing
1 changed file
with
5 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters