-
Notifications
You must be signed in to change notification settings - Fork 50
Comparing changes
Open a pull request
base repository: nodejs/quic
base: 72997d659a84635db791fdf9d8a80d61b326ad8f
head repository: nodejs/quic
compare: ea095af59f9ff209b5044f5be634460f5b7b35e5
- 10 commits
- 22 files changed
- 1 contributor
Commits on Sep 23, 2019
-
quic: remove user_data from quic buffer callback
Using `std::function` and an opaque pointer are pretty much antithetical. This commit chooses the more C++-y variant, i.e. `std::function`. PR-URL: #126 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dcd4636 - Browse repository at this point
Copy the full SHA dcd4636View commit details -
Using `typedef enum` is a C-ism. PR-URL: #126 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 52c0cd7 - Browse repository at this point
Copy the full SHA 52c0cd7View commit details -
quic: cleanup node_quic_buffer.h
Prefer inline functions over macros, use explicit nullptr checks, do not mark functions with implicit inline linkage as inline, re-use code where possible, etc. PR-URL: #126 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 30eb6e9 - Browse repository at this point
Copy the full SHA 30eb6e9View commit details -
Move methods that do not need to be inline into their own file, replace `std::function` with a template variant for performance, remove `inline` for functions with implicit inline linkage. PR-URL: #126 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 930fb13 - Browse repository at this point
Copy the full SHA 930fb13View commit details -
quic: remove opaque pointer from Timer callback
Use the more C++-y `std::function` approach which renders opaque pointers unnecessary. PR-URL: #126 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 54e9596 - Browse repository at this point
Copy the full SHA 54e9596View commit details -
quic: cleanup QuicSession code
- Do not create new `v8::Function` objects, both for performance and because it is unclear whether that leaks memory (Node.js issue 28988). - Do not put functions into the inline header that do not need to be there or that do not make sense as inline functions (in particular, callbacks that are provided to C libraries can not be realized as inline functions by the compiler). - Remove implicit/redundant `inline` qualifiers and add appropriate `const` qualifiers. - Remove unnecessary `this->` prefixes. - Return early for JS failures rather than accumulating them. - Minor stylistic changes. PR-URL: #126 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cda0d2c - Browse repository at this point
Copy the full SHA cda0d2cView commit details -
src: refactor memory tracker implementation
Use a template class instead of virtual methods to allow inlining the subclass methods, as well as other minor cleanups. PR-URL: #126 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 84af079 - Browse repository at this point
Copy the full SHA 84af079View commit details -
http2: use shared memory tracking implementation
The extensive testing done on http2 makes it easier to make sure the implementation is correct (and doesn’t diverge unnecessarily). PR-URL: #126 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6320562 - Browse repository at this point
Copy the full SHA 6320562View commit details -
quic: remove QuicStreamListener
This listener currently had the drawbacks of leaking memory when an error is encountered and was otherwise equivalent to the default listener. PR-URL: #126 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2e29b5c - Browse repository at this point
Copy the full SHA 2e29b5cView commit details -
quic: more general C++ cleanup
Use default initializers, `const` qualifiers, minor style changes to match more common style in the codebase. PR-URL: #126 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ea095af - Browse repository at this point
Copy the full SHA ea095afView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 72997d659a84635db791fdf9d8a80d61b326ad8f...ea095af59f9ff209b5044f5be634460f5b7b35e5