primerib1 Posted January 27 Share Posted January 27 Okay so I have a line of code that looks like this: llSetLinkPrimitiveParamsFast(0, [ PRIM_TEXTURE, 0, HUD_TEXTURE, HUD_SCALE, tx_offs, (float)0 ]); If I pump the script through LSL-PyOptimizer, it 'optimizes' that line into this: llSetLinkPrimitiveParamsFast(0, (list)17 + 0 + ((key)"some-uuid") + <0.5, 0.5, ((float)0)> + tx_offs + ((float)0)); Ignoring the const inlining, it converts a literal list into a typecasted list plus some 'addition' operations. Now if it's a list literal with a single element, I can kind of grasp the benefit [some_value] => (list)some_value But this is a long literal list with many items, so there will be lots of 'addition' operations. Is it still beneficial to translate a list-literal-with-many-items into a list-typecast-and-lots-of-additions ? Link to comment Share on other sites More sharing options...
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now