godot icon indicating copy to clipboard operation
godot copied to clipboard

Add reverse UID cache

Open KoBeWi opened this issue 3 months ago • 2 comments

Fixes #75617

This PR introduces a reverse UID cache, i.e. HashMap of path -> UID. It's only used at runtime. The downside is that it basically doubles memory usage of UID cache (not sure how much is that a problem), but the alternative is doing a reverse lookup on the base cache, which would involve iterating every entry; not very efficient.

KoBeWi avatar Sep 12 '25 18:09 KoBeWi

Finally this is being fixed

sodaJar avatar Sep 30 '25 13:09 sodaJar

The downside is that it basically doubles memory usage of UID cache (not sure how much is that a problem)

Should not be an issue, UID cache won't be large enough to be noticeable.

bruvzg avatar Dec 08 '25 07:12 bruvzg

Thanks!

Repiteo avatar Dec 08 '25 18:12 Repiteo