Fastest way to pass geometry to C Extension
-
Hi all,
Which method would be faster, to iterate over all vertices/normals/uvs and pass them to C extension via extension function or access Ruby data pointer from C extension itself? What is the fastest way of passing geometry data to C extension?
Thanks
-
This sound like a bleeding edge optimization - where you need to profile to get your answer.
In general, try to create as few Ruby objects as possible. Reuse data. Make use of bulk functions if possible.
Advertisement