Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable *warn-on-reflection* and add missing hints #18

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

julienvincent
Copy link
Contributor

At the moment there are several reflection calls occuring on the hot-path for request handling. This is both slow and makes it harder to compile with GraalVM.

This commit enables the *warn-on-reflection* global on all namespaces and adds the missing type hints to locations where reflection were occuring.

In some cases this required restructuring code a bit to better apply the hints.

At the moment there are several reflection calls occuring on the
hot-path for request handling. This is both slow and makes it harder to
compile with GraalVM.

This commit enables the `*warn-on-reflection*` global on all namespaces
and adds the missing type hints to locations where reflection were
occuring.

In some cases this required restructuring code a bit to better apply the
hints.
@mpenet
Copy link
Owner

mpenet commented Jan 12, 2024

Looking good, thanks!

@mpenet mpenet merged commit 6e894fb into mpenet:main Jan 12, 2024
1 check passed
@mpenet
Copy link
Owner

mpenet commented Jan 12, 2024

released as 0.1.30

@julienvincent julienvincent deleted the jv/warn-and-fix-reflection branch January 12, 2024 10:48
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