Skip to content

Investigate code generation solutions, or other ways to speed up object creation #31

@grahamboree

Description

@grahamboree

On some platforms, the reflection overhead associated with reification is significant. Specifically, the overhead of creating an object and setting fields on it via reflection APIs.

A possible solution here is to generate typed object-creation code from a reflection cache. This would allow DarkConfig to create objects and set values on them without using reflection. It would also slow down the iteration process, since a bunch of code would need to be generated and compiled.

Generally this feature needs more thought, but given how bad the reflection overhead is on some platforms, it's well worth the effort to investigate

Metadata

Metadata

Assignees

Labels

📈enhancementA useful improvement or extension to existing behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions