▲ | jeroenhd 7 days ago | |
With JS' async/await system basically running on creating temporary closures, I don't think things will change all that much to be honest. Furthermore, I don't see why engines should police what is or isn't acceptable performance. Using functional interfaces (map/forEach/etc.) is slower than using for loops in most cases, but that didn't stop them from implementing those interfaces either. I don't think there's that much of a performance impact when comparing
and
especially when you end up writing code like
when using existing language features. | ||
▲ | ufo 7 days ago | parent [-] | |
The problem they were discussion in the linked Github issue are pipelines where the functions receive more than one argument.
In this case the pipeline version would create a bunch of throwaway closures.
|