The most computationally expensive task in my plugin is a large loop that performs several mathematical operations per cycle. This cycle is contained in an independent function.
I would like to convert this function in C and call it from the main script. I have looked previously at the Ruby SDK and available examples, but honestly I have always abandoned it as it was a bit confusing (at least for my level of knowledge).
Could you recommend an existing plugin where something similar has been done before? Do you think that, at least in principle, the increase in performance would be worth the effort. I have a very basic knowledge of C, but I am completely lost when it comes to build libraries, projects in Xcode etc… The only thing that I have managed to do so far is the basic example in the ‘Programming Ruby’ book.