-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
re-use (done: false) IteratorResult objects yielded by underlying iterator #17
Comments
It's kind of weird to do this given that we don't do it for I'm not totally opposed but it isn't obvious that this would be a perf improvement anyway, because now engines can't assume that the result of |
|
Assuming we do this, we should also do this (as a follow-up) for |
It's maybe possible to change |
Ah jeeze, that's what I get for testing in a browser instead of actually reading the spec. |
I opened a needs-consensus PR for 262: tc39/ecma262#3489 |
Taken from the tests PR: https://github.com/tc39/test262/pull/4326/files#diff-667834d670268d2d741d9c1331df51d617cb4281fd9a46f785af4f43cc1ff256R49.
This seems really wasteful. Would there be any harm in re-using these IteratorResult objects from the underlying iterator instead of constructing them anew?
The text was updated successfully, but these errors were encountered: