|
![](/i/fill.gif) |
Thorsten Froehlich <tho### [at] trf de> wrote:
> The slowdown occurs when building
> the scene in memory via dynamically allocated memory. Dynamic allocation of
> lots and lots of (rather small) objects is simply slow with default
> allocators.
Which means that creating optimized allocators for those things which
povray creates could drastically increase parsing speed?
Patch makers, where are you? ;)
> The parser is fairly fast.
Of course this doesn't mean it couldn't be faster. If calling a macro which
resides in another file is noticeably slower (eg. inside a loop) than calling
the same macro residing in the current file, it means that parsing itself
could be faster.
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
![](/i/fill.gif) |