Github user kiszk commented on the issue:
https://github.com/apache/spark/pull/19518
| what do you mean by this? using array can't reduce constant pool size at
all?
Not at all. However, when array index for an access is greater than 32768,
the access requires constant pool entry. This is because integer constant of
32768 or greater uses `ldc` java bytecode instruction
[[ref]](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-6.html#jvms-6.5.ldc)[[ref]](https://cs.au.dk/~mis/dOvs/jvmspec/ref-_ldc.html).
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]