Re:Use cases for ES6 proxies
by adrusi on Wednesday July 20, 2016 @10:15AM
(#12129152)
I suppose I don't know for sure how JS runtimes implement them, but closures ought to be very cheap. They just need a reference to a static block of code and to any variables declared or referenced within. The most expensive part of using a closure is a heap allocation, and one extra allocation while creating an object in javascript is almost always negligible.
[ Parent
| on HN ]
There are no comments on this comment yet.