less4j icon indicating copy to clipboard operation
less4j copied to clipboard

CustomFunctions.evaluate clones too much

Open a701440 opened this issue 8 years ago • 0 comments

Is it possible to avoid cloning a lot of AST in the CustomFunctions.evaluate. It appears that even for simple functions that don't use most of the arguments a lot of inefficient cloning is taking place. Perhaps this could be a configuration option. This way authors of custom functions could clone internally if needed when this option is set to false. Actually it's not clear why cloning is needed. Standard function packages don't seem to clone.

a701440 avatar Aug 01 '16 18:08 a701440