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: use offset calc. instead of `req->data` in node_file by addaleax · Pull Request #21839 · nodejs/node

Conversation

@addaleax

@addaleax addaleax commented Jul 16, 2018

Copy link
Copy Markdown
Member

A small refactor – this removes one layer of pointer indirection.
(The performance gain is likely negligible, the main point here
being that this encapsulates libuv request management a bit more.)

@bcoe Mostly doing this because of our conversation – it’s nicer if we make existing code rely less on what exactly data points to :)

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

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

All reactions
@addaleax
src: use offset calc. instead of req->data in node_file
ed1caac
A small refactor – this removes one layer of pointer indirection.
(The performance gain is likely negligible, the main point here
being that this encapsulates libuv request management a bit more.)
@nodejs-github-bot

nodejs-github-bot commented Jul 16, 2018

Copy link
Copy Markdown
Collaborator

@addaleax build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/288/pipeline

All reactions

Sorry, something went wrong.

Uh oh!

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

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. fs Issues and PRs related to file-system APIs and the fs module. labels Jul 16, 2018
eugeneo
eugeneo approved these changes Jul 16, 2018
View reviewed changes
cjihrig
cjihrig approved these changes Jul 17, 2018
View reviewed changes
@addaleax

addaleax commented Jul 17, 2018

Copy link
Copy Markdown
Member Author

CI: https://ci.nodejs.org/job/node-test-pull-request/15910/

All reactions

Sorry, something went wrong.

Uh oh!

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

TimothyGu
TimothyGu approved these changes Jul 17, 2018
View reviewed changes
devsnek
devsnek approved these changes Jul 17, 2018
View reviewed changes
jasnell
jasnell approved these changes Jul 17, 2018
View reviewed changes
tniessen
tniessen approved these changes Jul 18, 2018
View reviewed changes
@addaleax

addaleax commented Jul 18, 2018

Copy link
Copy Markdown
Member Author

FreeBSD re-build: https://ci.nodejs.org/job/node-test-commit-freebsd/19088/

All reactions

Sorry, something went wrong.

Uh oh!

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

@addaleax addaleax added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Jul 18, 2018
maclover7
maclover7 approved these changes Jul 18, 2018
View reviewed changes
@addaleax addaleax mentioned this pull request Jul 19, 2018
fs: implement recursive (mkdirp) functionality #21875
Closed
4 tasks done
@addaleax

addaleax commented Jul 19, 2018

Copy link
Copy Markdown
Member Author

Landed in 2d32a7e

All reactions

Sorry, something went wrong.

Uh oh!

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

@addaleax addaleax closed this Jul 19, 2018
@addaleax
addaleax deleted the file-offset branch July 19, 2018 10:29
addaleax added a commit that referenced this pull request Jul 19, 2018
@addaleax
src: use offset calc. instead of req->data in node_file
2d32a7e
A small refactor – this removes one layer of pointer indirection.
(The performance gain is likely negligible, the main point here
being that this encapsulates libuv request management a bit more.)

PR-URL: #21839
Reviewed-By: Eugene Ostroukhov <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
targos pushed a commit that referenced this pull request Jul 20, 2018
@addaleax @targos
src: use offset calc. instead of req->data in node_file
d0f8af0
A small refactor – this removes one layer of pointer indirection.
(The performance gain is likely negligible, the main point here
being that this encapsulates libuv request management a bit more.)

PR-URL: #21839
Reviewed-By: Eugene Ostroukhov <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Jon Moss <[email protected]>
@targos targos mentioned this pull request Jul 31, 2018
v10.8.0 proposal #22040
Merged
This was referenced Aug 1, 2018
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-nodejs#212
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#223
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#224
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#225
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#226
Closed
2018-08-01 Version 10.8.0 (Current) @targos beevelop/docker-android-nodejs#227
Closed
This was referenced Jun 18, 2021
[Snyk] Security upgrade gatsby from 2.18.18 to 2.19.25 ron-a20/node#34
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 2.19.25 aliceUnhinged613/node#26
Open
[Snyk] Security upgrade gatsby from 2.13.73 to 2.19.25 meghasfdc/node#36
Open
This was referenced Jun 19, 2021
[Snyk] Security upgrade gatsby from 2.13.73 to 2.19.25 kissofire/node#36
Open
[Snyk] Security upgrade gatsby from 2.18.18 to 2.19.25 137717unity/node#27
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell approved these changes
@cjihrig cjihrig cjihrig approved these changes
@tniessen tniessen tniessen approved these changes
+4 more reviewers
@eugeneo eugeneo eugeneo approved these changes
@TimothyGu TimothyGu TimothyGu approved these changes
@maclover7 maclover7 maclover7 approved these changes
@devsnek devsnek devsnek approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. c++ Issues and PRs that require attention from people who are familiar with C++. fs Issues and PRs related to file-system APIs and the fs module.

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.

9 participants

@addaleax @nodejs-github-bot @eugeneo @jasnell @TimothyGu @cjihrig @maclover7 @tniessen @devsnek
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.