Commit 9b6c445
Inline equals in StringIndex probe; drop the eq() guard helper
The `a == b || a.equals(b)` guard is a wash when equals inlines (benchmark: a
monomorphic String receiver lets equals's own leading `this == b` provide the
identity fast-path). And the eq() helper was an extra call in the hot probe,
consuming inline depth/budget; inlining `.equals()` directly flattens
indexOf -> equals, making equals more likely to inline -- the regime where the
guard is moot anyway.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 62b9e64 commit 9b6c445
1 file changed
Lines changed: 2 additions & 7 deletions
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | 291 | | |
297 | 292 | | |
0 commit comments