GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — Eliminate redundant bounds checks in CompositeByteBuf accessors by franz1981 · Pull Request #16801 · netty/netty Conversation
Contributor
Motivation: Every _getXxx/_setXxx in CompositeByteBuf delegates to the underlying Modifications:
Result: Redundant bounds checks eliminated on the hot path.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Blocked by #16800 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This reverts commit 59aec4b.
Motivation: Every _getXxx/_setXxx in CompositeByteBuf delegates to the underlying buffer's public API (e.g. c.buf.getByte()), which re-checks bounds that the composite level already validated. Modifications: - Add an `abuf` field to Component that caches `(AbstractByteBuf) buf` at construction time, or null for non-AbstractByteBuf wrappers - Use abuf._getXxx() (no bounds check) when available, fall back to buf.getXxx() otherwise - Add sequentialReadBytes and sequentialGetBytes JMH benchmarks - Add test for discardReadComponents not corrupting subsequent reads Result: Redundant bounds checks eliminated on the hot path.
979ebad to
ff008bb
Compare
|
WDYT About this too @chrisvest it should be low risk |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Since #16811 has been merged , this is safe enough to merge wdyt @chrisvest and @normanmaurer ? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Oh no, my trying to resolve the conflict on github i've removed the right changes ahaha -> putting it in draft! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@franz1981 let me know once this is ready again |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
🚨 Jobs failed without executing tests 🚨Failed Jobs without Test Failures❌ Build PR / verify-pr 🏷️ Commit: 68f6bf2 Rerun ControlsClick the checkbox to trigger a rerun:
Learn more about TestLens at testlens.app/docs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.