9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-29 03:49:21 +00:00
Files
Leaf/patches
Dreeam 487a9ff9b6 Drop Branchless clamp logic due to performance regression
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 |
2024-11-20 10:20:04 -05:00
..
2024-11-10 17:20:40 -05:00