[][src]Macro fasteval::eval_compiled

macro_rules! eval_compiled {
    ($evaler:ident, $slab_ref:expr, $ns_mut:expr) => { ... };
    ($evaler:expr, $slab_ref:expr, $ns_mut:expr) => { ... };
}

The same as evaler.eval(&slab, &mut ns), but more efficient for common cases.

This macro is exactly the same as eval_compiled_ref!() but is more efficient if you have ownership of the evaler.

Only use this for compiled expressions. (If you use it for interpreted expressions, it will work but will always be slower than calling eval() directly.)

This macro is able to eliminate function calls for constants and Unsafe Variables. Since evaluation is a performance-critical operation, saving some function calls actually makes a huge performance difference.