Skip to content

Commit

Permalink
Drop Branchless clamp logic due to performance regression
Browse files Browse the repository at this point in the history
The java internal implementation of Math#min / max is faster, due to the `@IntrinsicCandidate`, enables the JIT compiler to use native method for more efficient performance.

**Only for** reference: (Added asterisk marks to avoid people who can't see)

| Benchmark            | Mode  | Cnt | Score     | Error    | Units  |
|----------------------|-------|-----|-----------|----------|--------|
| clampInline   | thrpt | 5   | 37046.833 | ±454.413 | ops/ms |
| clampInternal | thrpt | 5   | 37355.122 | ±362.992 | ops/ms |
  • Loading branch information
Dreeam-qwq committed Nov 20, 2024
1 parent 3b82780 commit 487a9ff
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions patches/server/0149-Branchless-clamp-logic.patch

This file was deleted.

0 comments on commit 487a9ff

Please sign in to comment.