Skip to content

src: use offset calc. instead of `req->data` in node_file

Rodrigo Muino Tomonari requested to merge github/fork/addaleax/file-offset into master

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

Merge request reports

Loading