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

Optimize type checking #858

Merged
merged 3 commits into from
Feb 25, 2025
Merged

Conversation

vsbogd
Copy link
Collaborator

@vsbogd vsbogd commented Feb 25, 2025

First step to optimize type checker. It should improve performance in complex cases in about 6 times (see #850).
PR changes code to calculate children types only once. Also it fixes but in type checker: when one of the arguments is checked by meta type all other arguments are not checked. This bug probably not visible in real cases because interpreter has other type-checking algorithm.

Check tail argument in case when first argument is matched by expecting
meta type. Add fast check for number of arguments expected.
@vsbogd vsbogd merged commit 0f886d9 into trueagi-io:main Feb 25, 2025
1 check passed
@vsbogd vsbogd deleted the optimize-type-checking-1 branch February 25, 2025 15:45
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