Skip to content
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

timers: remove no longer relevant comment #14314

Closed
wants to merge 2 commits into from

Conversation

timcosta
Copy link
Contributor

This PR resolves #14308 by removing a comment that is no longer relevant.

Checklist
Affected core subsystem(s)

None. File modified is timers, but no code was changed.

@nodejs-github-bot nodejs-github-bot added the timers Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout. label Jul 16, 2017
@mscdex
Copy link
Contributor

mscdex commented Jul 17, 2017

I don't think the comment is needed at all for v7.x+ since V8 in v7.x allows optimization of functions containing try-catch/finally, they just can't be inlined. With TurboFan it's probably even less of an issue (I have not checked inlineability with try-catch/finally there).

@gibfahn
Copy link
Member

gibfahn commented Jul 17, 2017

@mscdex in that case I guess the call should be moved inside the try/finally and the comment removed?

@mscdex
Copy link
Contributor

mscdex commented Jul 17, 2017

@gibfahn I'm not sure manually inlining the helper function really matters, although I haven't benchmarked the difference with TurboFan.

Copy link
Contributor

@Fishrock123 Fishrock123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refer to the discussion in #14308

This should probably revert the optimization altogether once we have TurboFan (do we have it by default in master? not sure lol).

The change is just extra noise otherwise. :/

@addaleax
Copy link
Member

once we have TurboFan (do we have it by default in master? not sure lol).

Yes. :)

@benjamingr
Copy link
Member

Ping @Fishrock123

@BridgeAR
Copy link
Member

BridgeAR commented Sep 8, 2017

I think it would be fine to land this even if our real goal is to change the code again. This is a task marked as good first contribution and it would be good to land this as is.

@BridgeAR BridgeAR self-assigned this Sep 9, 2017
@BridgeAR
Copy link
Member

BridgeAR commented Sep 9, 2017

@Fishrock123 if you still have concerns, please respond here. Otherwise I am going to land this on Monday.

Copy link
Contributor

@Fishrock123 Fishrock123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

@BridgeAR
Copy link
Member

BridgeAR commented Sep 9, 2017

@Fishrock123 thanks ❤️

@BridgeAR
Copy link
Member

BridgeAR commented Sep 9, 2017

Landed in a2b6872

@BridgeAR BridgeAR closed this Sep 9, 2017
BridgeAR pushed a commit that referenced this pull request Sep 9, 2017
PR-URL: #14314
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
MylesBorins pushed a commit that referenced this pull request Sep 10, 2017
PR-URL: #14314
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
@MylesBorins MylesBorins mentioned this pull request Sep 10, 2017
MylesBorins pushed a commit that referenced this pull request Sep 11, 2017
PR-URL: #14314
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
MylesBorins pushed a commit that referenced this pull request Sep 12, 2017
PR-URL: #14314
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
addaleax pushed a commit to addaleax/node that referenced this pull request Sep 13, 2017
PR-URL: nodejs#14314
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
timers Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Outdated comment in timers
10 participants