3 ms·
It's hard to take anyone concerned about the 'performance ceilings' in javascript object creation seriously at this point.
by weego 2y ago
It's hard to take anyone concerned about the 'performance ceilings' in javascript object creation seriously at this point.
- skrebbel 2y agowhy?
- wiseowise 2y agoJS bad. /s
- aardvark179 2y agoGive developers an alternative to classes that favors a higher performance ceiling and statically analyzability over flexbility. Is an entirely reasonable goal. Object shape in JS tends to go through a fixed pattern of mutation immediately after construction and although that can sometimes be analysed away by the JIT there are a lot of edge cases that can make that tricky. You may not care, but I bet almost everybody who has actually worked on a JS engine does, and has good reasons for doing so.