>>315There are clear limits on what you can optimize in JS. For example, JS method calls go through a hash table, which is just overly slow. Of course you can try caching table-lookups, having dirty flags invalidating cache, but that is an exercise in futility, that won't make it observably faster.