Remove `o == this` check from generated `equals`?
Open
Component: value
P3
- Dominant language
- Java
- Stars
- 10.6k
- Forks
- 1.2k
- Avg merge
- 6h 32m
- Merged PRs (30d)
- 13
Description
It appears that most cases `o == this` check actually degrades performance because of branch prediction algorithms. It might be worth considering to remove it from auto-value templates. Sorry for linking to YT, but there's no article anywhere - at least I couldn't find any.
Please see https://www.youtube.com/watch?v=kuzjX_efuDs.
Contributor guide
Assessment
This issue has not been assessed yet.