[code-reflection] RFR: Code model attribute [v4]

Maurizio Cimadamore mcimadamore at openjdk.org
Wed Dec 4 11:49:50 UTC 2024


On Wed, 27 Nov 2024 08:53:39 GMT, Adam Sotona <asotona at openjdk.org> wrote:

>> This is experimental serialization of code model into a custom method attribute.
>> 
>> I've performed brief comparison on `BytecodeTest` as a representant of class with majority of methods annotated with `@CodeReflection`.
>> 
>> Compiled size of the `BytecodeTest` class (with text-encoded code models) is 121288 bytes, CP contains 1612 entries.
>> Cleaned size of the class (removed text-encoded code models and their static initialization) is 32801 bytes, CP contains 1277 entries.
>> Size with models encoded in custom attributes is 74541 bytes, CP contains 1435 entries.
>> 
>> Proportional size of the custom attributes vs. text-encoded fields is 37% (47% of the CP entries).
>
> Adam Sotona has updated the pull request incrementally with one additional commit since the last revision:
> 
>   typo

<removed>

-------------

PR Review: https://git.openjdk.org/babylon/pull/282#pullrequestreview-2478312197


More information about the babylon-dev mailing list