A lot of Function parser usage currently relies on closures. This is costly because we have to create a new closure for every invocation. Function should instead take a data/argument value which can be passed in to a static callback to avoid creating closures.
Once we have that we should go back and audit existing usages to make sure we are properly optimized.
A lot of Function parser usage currently relies on closures. This is costly because we have to create a new closure for every invocation. Function should instead take a data/argument value which can be passed in to a static callback to avoid creating closures.
Once we have that we should go back and audit existing usages to make sure we are properly optimized.