hiero-ledger / hiero-ledger/hiero-consensus-node

Add ability to opt in to service config data initialization

Open
#24,691 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
406
Forks
226
Avg merge
3d 4h
Merged PRs (30d)
210

Description

While converting to native images for solo memory reduction, we noticed that we need to provide reflection hints for all of the config classes in the `com.hedera.node.config.data` package because these classes are eagerly loaded. Mirror node operation doesn't utilize the majority of these config classes and having to register the hints adds unnecessary bloat to the native image. Is it possible to provide the ability to opt in to loading specific config classes necessary for application operation?

Contributor guide

Open the contributing guide

Research direction

Start by tracing configuration initialization for the com.hedera.node.config.data package and how reflection hints are supplied for native images. Compare the classes required by mirror node operation with the eagerly loaded set; done means applications can opt in to only the config classes they need without adding unnecessary native-image hints.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.