Skip to content

Type cache for fast type_all(..) requests#439

Merged
joente merged 5 commits intomainfrom
type_cache
Feb 19, 2026
Merged

Type cache for fast type_all(..) requests#439
joente merged 5 commits intomainfrom
type_cache

Conversation

@joente
Copy link
Member

@joente joente commented Feb 19, 2026

Description

This pull request introduces type cache. To be used, it must be set on to a type. If on, instances of a type will get their own lookup. As we might have circumstances where type_all(..) is used frequently on certain type, we benefit from a cache as otherwise we need to search between all things. The speed-up might be 10x faster or even more depending on the number of things in a collection.

(see discussion: #437)

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • Test type

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • New and existing unit tests pass locally with my changes

@joente joente self-assigned this Feb 19, 2026
@joente joente merged commit 5f73c08 into main Feb 19, 2026
1 check passed
@joente joente deleted the type_cache branch February 19, 2026 13:12
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.

1 participant

Comments