SpryFox / DarkConfig

DarkConfig is a configuration library for games which supports fast and expressive iteration
Other
150 stars 19 forks source link

Don't keep fields marked with ConfigIgnore in the Reflection Cache #36

Closed grahamboree closed 1 year ago

grahamboree commented 2 years ago

Since there's no way to un-ignore the field, we can just prevent storing it in the reflection cache. This reduces the overall reflection cache size, but splits the logic for handling attributes into more than one place. That tradeoff is likely worth it though for the sake of some potential performance gains.