netty / netty/netty

Leverage Java 9+ intrinsified bound check

Open
#15,465 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

improvement
Dominant language
Java
Stars
35.1k
Forks
16.3k
Avg merge
1d 5h
Merged PRs (30d)
143

Description

Similar to https://github.com/eclipse-vertx/vert.x/pull/5645#issuecomment-3056362149 - but for Netty 4.2 we still need MethodHandle to use it.
It would be highly beneficial to have it as PlatformDependent method (if it works).

WDYT @chrisvest wanna give it a shot vs the changes I did recently on this?

Consider that for heap based buffers it could (I haven't verified) ships the likely double bound check, with this

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Netty 4.2's PlatformDependent area and the referenced Vert.x discussion. Determine whether Java 9+ bound-check intrinsification can be exposed through MethodHandle, including the possible double bound check for heap buffers; completion requires validating that approach and its effect in Netty.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.