GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: check for --prof in ParseArgs by evanlucas · Pull Request #2533 · nodejs/node

Conversation

@evanlucas

@evanlucas evanlucas commented Aug 25, 2015

Copy link
Copy Markdown
Contributor

Previously, all of the cli arguments are parsed and then we loop
through the v8 arguments again. This patch removes the need for the
additional loop as we can check if the argument is --prof during the
initial ParseArgs.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@evanlucas
src: check for --prof in ParseArgs
a17479a
Previously, all of the cli arguments are parsed and then we loop
through the v8 arguments again. This patch removes the need for the
additional loop as we can check if the argument is --prof during the
initial ParseArgs.
@evanlucas evanlucas added the c++ Issues and PRs that require attention from people who are familiar with C++. label Aug 25, 2015
@bnoordhuis

bnoordhuis commented Aug 25, 2015

Copy link
Copy Markdown
Member

I guess I don't really see the point. The number of comparisons stays the same, right?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@evanlucas

evanlucas commented Aug 25, 2015

Copy link
Copy Markdown
Contributor Author

The number of comparisons doesn't change, but it prevents the additional loop through v8_argv. I trust your opinion though, so if you think it is worthless, I can close :]

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis

bnoordhuis commented Aug 25, 2015

Copy link
Copy Markdown
Member

I suspect it's basically a wash and possibly a pico-deoptimization. The loop counter probably lives in a register but v8_is_profiling is almost certainly reloaded from memory every time it's checked.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@evanlucas

evanlucas commented Aug 25, 2015

Copy link
Copy Markdown
Contributor Author

works for me

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@evanlucas evanlucas closed this Aug 25, 2015
@trongham trongham mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities trongham/node#30
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities aliceUnhinged613/node#56
Open
@adamlaska adamlaska mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities adamlaska/node#66
Open
@pratapadi pratapadi mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities pratapadi/node#9
Open
@aliscco aliscco mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities aliscco/alisco-node#42
Open
@snyk-bot snyk-bot mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities RoeeOren/node#27
Open
@baby636 baby636 mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities baby636/node#53
Open
@Verdinjoshua26 Verdinjoshua26 mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities Verdinjoshua26/node#22
Open
@baophucct baophucct mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities baophucct/node#29
Open
@saeedahassan saeedahassan mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities saeedahassan/node#39
Open
@enterstudio enterstudio mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities enterstudio/node#27
Open
@GregorFendt GregorFendt mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities GregorFendt/node#21
Open
@ShubhraKar ShubhraKar mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities ShubhraKar/node#27
Open
@Mcculloughj Mcculloughj mentioned this pull request May 13, 2022
[Snyk] Security upgrade node-gyp from 7.1.2 to 8.4.1 Mcculloughj/node#35
Open
@snyk-bot snyk-bot mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities luke7oaks/node-1#31
Open
@ramonbrugman ramonbrugman mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities ramonbrugman/node#20
Open
@thakursachin467 thakursachin467 mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities thakursachin467/node#21
Open
@timzwit timzwit mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities timzwit/node#23
Open
@ron-a20 ron-a20 mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities ron-a20/node#65
Open
@Bhanditz Bhanditz mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities Bhanditz/node#26
Open
@amacsnyk amacsnyk mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities amacsnyk/node#10
Closed
@137717unity 137717unity mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities 137717unity/node#56
Open
@Mcculloughj Mcculloughj mentioned this pull request May 13, 2022
[Snyk] Fix for 1 vulnerabilities Mcculloughj/node#37
Open
@aliscco aliscco mentioned this pull request May 14, 2022
[Snyk] Security upgrade node-gyp from 7.1.2 to 8.4.1 aliscco/alisco-node#54
Open
@awaisab172 awaisab172 mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities awaisab172/node#33
Open
@pratapadi pratapadi mentioned this pull request May 14, 2022
[Snyk] Security upgrade node-gyp from 7.1.2 to 8.4.1 pratapadi/node#17
Open
@ajesse11x ajesse11x mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities ajesse11x/node#36
Open
@wedataintelligence wedataintelligence mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities wedataintelligence/node#32
Open
@bumplzz69 bumplzz69 mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities bumplzz69/node#36
Open
@erdun erdun mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities erdun/node#46
Open
@sirinartk sirinartk mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities sirinartk/node#32
Open
@Qdigital Qdigital mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities Qdigital/node#28
Open
@kaocher82 kaocher82 mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities Xtuden-com/node#27
Open
@vaibhavb vaibhavb mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities vaibhavb/node#26
Open
@solebox solebox mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities solebox/node#30
Open
@apoorvanand apoorvanand mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities apoorvanand/node-2#26
Open
@terrorizer1980 terrorizer1980 mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities terrorizer1980/node-1#10
Open
@snyk-bot snyk-bot mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities olegnn/node#39
Open
@molllyn1 molllyn1 mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities molllyn1/node#47
Open
@AyushG3112 AyushG3112 mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities AyushG3112/node#27
Open
@s4sc s4sc mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities s4sc/node#27
Open
@yotamselementor yotamselementor mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities yotamselementor/node#20
Open
@xphillyx xphillyx mentioned this pull request May 14, 2022
[Snyk] Fix for 1 vulnerabilities xphillyx/node#14
Open
@AyushG3112 AyushG3112 mentioned this pull request Jun 22, 2022
[Snyk] Fix for 1 vulnerabilities AyushG3112/node#28
Open
@snyk-bot snyk-bot mentioned this pull request Jun 24, 2022
[Snyk] Fix for 7 vulnerabilities adamlaska/node#70
Open
@snyk-bot snyk-bot mentioned this pull request Sep 23, 2022
[Snyk] Fix for 2 vulnerabilities 137717unity/node#66
Open
@Verdinjoshua26 Verdinjoshua26 mentioned this pull request Sep 26, 2022
[Snyk] Fix for 9 vulnerabilities Verdinjoshua26/node#24
Open
This was referenced Sep 26, 2022
[Snyk] Fix for 2 vulnerabilities wedataintelligence/node#46
Open
[Snyk] Fix for 11 vulnerabilities vaibhavb/node#35
Open
@RoeeOren RoeeOren mentioned this pull request Oct 5, 2022
[Snyk] Fix for 9 vulnerabilities RoeeOren/node#32
Open
@MrBrain295 MrBrain295 mentioned this pull request Oct 5, 2022
[Snyk] Fix for 1 vulnerabilities MrBrain295/node#7
Open
@bumplzz69 bumplzz69 mentioned this pull request Oct 5, 2022
[Snyk] Fix for 11 vulnerabilities bumplzz69/node#39
Open
@snyk-bot snyk-bot mentioned this pull request Oct 9, 2022
[Snyk] Fix for 2 vulnerabilities Rednickle/node-1#62
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

c++ Issues and PRs that require attention from people who are familiar with C++.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@evanlucas @bnoordhuis
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.