3 ms·
The problem with module pattern which enables you to use "this"-less Javascript is increased memory usage. Of course you can use other techniques for elements w
by methyl 12y ago
The problem with module pattern which enables you to use "this"-less Javascript is increased memory usage. Of course you can use other techniques for elements which you instaniate in thousands, but then you are mixing one pattern with another and it will begin hard to follow which should be which. I prefer consistency here.
- jsprogrammer 12y agoIn theory, an optimizing VM/JIT should be able to handle this for you. I'm not sure if existing implementations currently do any optimizations though.