How can I reduce memory allocation and execution time while ray tracing using VoxelRayTracers package?

Try using static vectors here. This should eliminate many of the allocations inside eachtraversal if I understand correctly.

2 Likes