recursive function calls need optimization

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

recursive function calls need optimization

clothbot
Hey Marius,

When you get a chance, could you look into profiling the custom "function" code and see if recursive function calls might be better optimized? They work but are *really* slow.

I've attached a little font.scad & text.scad rendering example I've been working on.  If the attachment doesn't go thru to the list, the work-in-progress code is at https://github.com/clothbot/makerbot/tree/master/fabjects/libraries/constructors

Load up the "text.scad" and compile the "render_part=1" example.

Thanks!

Andrew.




--

"The future is already here.  It's just not very evenly distributed" -- William Gibson

Me: http://clothbot.com/wiki/




fonts.scad (20K) Download Attachment
text.scad (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: recursive function calls need optimization

kintel
Administrator
On Jan 25, 2012, at 17:08 PM, Andrew Plumb wrote:
>
> When you get a chance, could you look into profiling the custom "function" code and see if recursive function calls might be better optimized? They work but are *really* slow.
>
I haven't looked too much into this, but initial investigation indicate that it's the Value class which takes most resources.
When looking at that class, it's indeed significant room for improvement. Not sure what to do with it. For performance, boost::any could we worth taking a look at.

 -Marius