Skip to content

Conversation

@yuxiaomao
Copy link
Contributor

Restore the use of unsafecast on Map.get, because it's a known situation and the compiler generates the correct type.

It's a stricter version of the optimization reverted by

@yuxiaomao yuxiaomao merged commit a548c5a into HaxeFoundation:development Nov 4, 2025
92 of 93 checks passed
@yuxiaomao yuxiaomao deleted the dev-restore-map-get-opt branch November 4, 2025 08:49
@tobil4sk
Copy link
Member

tobil4sk commented Nov 4, 2025

Would it be possible to make this behaviour more generic rather than hard coding it for the map types?

@yuxiaomao
Copy link
Contributor Author

Generic is probably better (and maybe Array can also benefit from this), but I don't have a good idea of how to

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