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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement