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

Abort type determination for List early #9779

Merged
merged 1 commit into from Jul 24, 2023

Conversation

sholderbach
Copy link
Member

Description

If we reach the conclusion that the fields of a list are of Type::Any
there is no need to continue as the type will remain Type::Any

This should improve runtimes of Value.get_type() for lists with mixed types.

User-Facing Changes

None, a speedup in some cases.

Tests + Formatting

Relies on existing tests

If we reach the conclusion that the fields of a list are of `Type::Any`
there is no need to continue as the type will remain `Type::Any`
@sholderbach sholderbach merged commit 2dcd1c5 into nushell:main Jul 24, 2023
19 checks passed
@sholderbach sholderbach deleted the early-stop-type-determination branch July 24, 2023 05:16
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.

None yet

2 participants