Hi,

On Saturday, 22 November 2014 19:49:52 UTC+1, ajlopez wrote:
>
> - Instead of eval("input.prop >= 45") you could internally convert it to a 
> function (once):
>

> rule.fn = new Function("input", "return input.prop >= 45")
>
>
Does that make it execute faster in the long run?

And would Node throw an error on that line where the function is 
constructed, or only when the function is executed?

Thanks,
Ant 

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/b0ea793f-216a-4b69-bbbf-96ab0b0e27b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to