kitsonk/dojo — comment on commit ba9465fcd1207b12a056a8f91ff76f27d976c6f9
File: parser.js line 586
By kitsonk:

Just to add, there is an overhead with invoking require(), even if there are no modules to load. Changing it to always go down the require path causes tests/parser/bench.html to run about 3-6% slower across the board and a profile of the parser unit tests in Firebug shows 69557 calls with mids.length versus 71663 without it. So there is at least some justification for the duplication of code here. (I will run a full set of tests against trunk later on tonight, BTW)