Created
January 4, 2011 22:33
-
-
Save tj/765580 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require.registerExtension('.js', function(js){ | |
return js.replace(/^ *\/\/debug: */gm, ''); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (options.debug) require('./debug'); | |
while (iAmParsingStuff) { | |
//debug: console.log('state -> %s', this.state) | |
} |
oh, you meant the extra function calls? it depends. writing a streaming parser an extra function call or two could add up quite a bit if you parse 50kb, that could be 50k calls that you dont want :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nah, it only has an effect when required so it doesnt really matter, and it would only affect the initial boot