Skip to content

refactor: Change ContentConfig tags type from []string -> Set[string]#629

Merged
BrentFarris merged 1 commit intoKaijuEngine:masterfrom
relaxgameing:refactor/cache-and-cache-content
Feb 16, 2026
Merged

refactor: Change ContentConfig tags type from []string -> Set[string]#629
BrentFarris merged 1 commit intoKaijuEngine:masterfrom
relaxgameing:refactor/cache-and-cache-content

Conversation

@relaxgameing
Copy link
Contributor

This is a small refactor , the main reason of changing the type from a slice to a Set is that a set is more appropriate container for tags in this context as it automatically manages the duplicate tags , O(1) lookup time to check if a content has a tag.

a set defines the intent more correctly

Copy link
Contributor

@BrentFarris BrentFarris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing! Very nice drop-in replacement for the tags, thank you!

@BrentFarris BrentFarris merged commit 984ab50 into KaijuEngine:master Feb 16, 2026
9 checks passed
@relaxgameing relaxgameing deleted the refactor/cache-and-cache-content branch February 17, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments