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 — Improve Direct Buffer accesses via VarHandle by franz1981 · Pull Request #15504 · netty/netty Conversation
Contributor
Motivation: With Unsafe gone the existing Direct's ByteBuf have too much overhead compared to the unsafe versions Modifications: Removed redundant bound checks and byte swapping conversions by using VarHandle Result: Faster safe Direct ByteBuffers (Fixes #15503)
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
The improvements, so far (at b2824591d322770f81f633fff11eb65142de4628) are: whilst the batchy numbers are still far behind |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Code scanning / CodeQL
User-controlled data in numeric cast
There was an error while loading. Please reload this page.
|
@chrisvest I have to perform few benchmarks vs |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@normanmaurer @chrisvest for this, do I need to care about the jemalloc pooled buffers as well? Fyi I have tried before/after just with JDK 24 but it could be worthy to try with 11/17 as well - which meant doesn't have that good varHandle optimizations. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I think it's fine to at least do them one at a time, in separate PRs. The pooled allocator will be used for cases where the adaptive allocator turns out to be a poor fit, and as an intermediate step in upgrading systems from 4.1 to 4.2. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@franz1981 please rebase |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Motivation: With Unsafe gone the existing Direct's ByteBuf have too much overhead compared to the unsafe versions Modifications: Removed redundant bound checks and byte swapping conversions by using VarHandle Result: Faster safe Direct ByteBuffers (Fixes netty#15503)
b282459 to
533cd3b
Compare
|
Done ptal @normanmaurer |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
If this look good @chrisvest we can go for it? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks, Franz! |
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.
Safe Direct Buffer accesses are not as fast as Unsafe ones
There was an error while loading. Please reload this page.