|
|
|
|
|
by mintplant
3581 days ago
|
|
> Lookup tables This one also seems a bit iffy to me, depending on the stage of compilation, how often this code runs, how much information the engine is able to collect, and the size of your table. The initial unoptimized property lookups will likely be slower than if/else statements, and the engine may end up optimizing them with inline caches, which are essentially a chain of if/else comparisons and jumps between dynamically generated code stubs. > Try-catch Yep, SpiderMonkey does optimize this case. |
|