Skip to content

Comments

Optimizations 11 2025#4

Open
kylegrover wants to merge 7 commits intoFullControlXYZ:mainfrom
kylegrover:optimizations-11-2025
Open

Optimizations 11 2025#4
kylegrover wants to merge 7 commits intoFullControlXYZ:mainfrom
kylegrover:optimizations-11-2025

Conversation

@kylegrover
Copy link

Hi, I was playing around with the library and it felt a bit slow so I started poking to see if I could get a speed up. Seems to be running much more quickly now! From my tests it seems to work correctly, but it does touch quite a bit of code so perhaps there's some review in order or some testing we can do to make sure everything works the same before and after.

The main changes were:
Avoid copying the voxel array (maybe a 2x speed up already there)
Vectorize the voxel fill operatations with numpy (another big gain)
preallocating voxel space (this seemed to be happening way too frequently for some reason, so this helps a bit)
and tracking filled voxels (avoids frequently recalculating)

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

Successfully merging this pull request may close these issues.

1 participant