sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Fastest way to pass geometry to C Extension

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 180 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • fuzzybroF Offline
      fuzzybro
      last edited by

      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

      [OctaneRender for SketchUp Overview and Demo Version(http://sketchucation.com/click.php?url)]

      Latest updates, tutorials and artwork
      facebook.com/octane4sketchup

      1 Reply Last reply Reply Quote 0
      • tt_suT Offline
        tt_su
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement