From fba94f2e0b2668e6d00b7d834d620d8ac80885ee Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 9 Jan 2011 19:44:09 -0500 Subject: [PATCH] Added todo to profile propParse's use of fvoid vs if statements --- lib/util.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/util.js b/lib/util.js index 2c21d1e..a0c11b4 100644 --- a/lib/util.js +++ b/lib/util.js @@ -171,6 +171,8 @@ exports.clone = function clone( data, deep ) */ exports.propParse = function( data, options ) { + // todo: profile; function calls are more expensive than if statements, so + // it's probably a better idea not to use fvoid var fvoid = function() {}, callbackEach = options.each || undefined, callbackProp = options.property || fvoid,