- User Since
- Sep 7 2017, 1:15 AM (124 w, 4 d)
Oct 9 2018
Well you can save more in the total size if the constant is needed in more than one place in the application (and linker can merge the CP entries) but I see your point about possible cache miss. It's not a clear win, as you say.
Wouldn't it better to put more complicated constants (requiring 4 and more instructions to materialize) in constant pool and load them from there?