# Where Did the Saved Bytes Go? Compact Object Headers in IntelliJ IDEA

DevFeed: [Where Did the Saved Bytes Go? Compact Object Headers in IntelliJ IDEA](<https://devfeed.tech/articles/where-did-the-saved-bytes-go-compact-object-headers-in-intellij-idea-114251.md>)

Original publisher: [Read original article](<https://blog.jetbrains.com/idea/2026/11/where-did-the-saved-bytes-go-compact-object-headers-in-intellij-idea/>)

Author: Igor Kulakov

Published: 2026-11-03T12:20:40Z

Content type: article

Language: en

Sources: [JetBrains](<https://devfeed.tech/sources/the-jetbrains-blog.md>)

Topics: [IntelliJ IDEA](<https://devfeed.tech/topics/intellij-idea.md>), [memory handling](<https://devfeed.tech/topics/memory-handling.md>)

Tags: [boundary](<https://devfeed.tech/tags/boundary.md>), [garbage-collection](<https://devfeed.tech/tags/garbage-collection.md>), [headers](<https://devfeed.tech/tags/headers.md>), [idea](<https://devfeed.tech/tags/idea.md>), [intellij-idea](<https://devfeed.tech/tags/intellij-idea.md>), [intellij-platform](<https://devfeed.tech/tags/intellij-platform.md>), [java](<https://devfeed.tech/tags/java.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [memory](<https://devfeed.tech/tags/memory.md>), [object](<https://devfeed.tech/tags/object.md>), [performance](<https://devfeed.tech/tags/performance.md>)

## AI overview

In tests inside IntelliJ IDEA, compact object headers reduced modeled heap footprints by about 6.3% for the Welcome screen and Petclinic objects and 8.2%-8.4% for monorepo objects, but produced no consistent RSS reduction at identical -Xmx. They also cut allocated volume by 8.8%-13.0%; monorepo indexing runs recorded fewer GC events and lower mean collection time and CPU, while scripted operation timings suggested only a modest speedup. The minimum tested heap that completed every repeat fell 6% for Petclinic and 17% for the monorepo; these are workload thresholds, not production recommendations. Savings depend on object shapes, fields and alignment, so smaller headers do not shrink every object or guarantee lower RSS or faster execution. Measure heap, allocation, GC, performance and heap limits separately.

## Source excerpt

AI agents may make code faster to produce, but they don't make it cheaper to run. In applications managing millions of objects, memory allocation and garbage collection still matter. The JVM has been addressing these costs on several fronts: ZGC targets garbage collection pauses, Project Leyden tackles startup and warmup, and Project Lilliput reduces the [...]