Skip to content

Conversation

@Rawk
Copy link
Contributor

@Rawk Rawk commented Jan 4, 2026

The generator spent a lot of time parsing Config::type_annotations in Rasn::derive_is_present. Partly because it recompiled the regex on all invocations.

Fix this by only parsing it once on Rasn instantiation.

Running test parse_test::parses_modules is reduced from 42 s to 34 s on my system.

The generator spent a lot of time parsing `Config::type_annotations` in
`Rasn::derive_is_present`. Partly because it recompiled the regex on all
invocations.

Fix this by only parsing it once on `Rasn` instantiation.

Running test `parse_test::parses_modules` is reduced from 42 s to 34 s
on my system.
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