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

Fix regression of cost behavior for has() #651

Merged
merged 3 commits into from
Mar 6, 2023

Conversation

DangerOnTheRanger
Copy link
Contributor

@DangerOnTheRanger DangerOnTheRanger commented Mar 2, 2023

This PR adds a hack that records the presence of fieldType on evalTestOnly in order to report a different cost when fieldType is present.

interpreter/interpretable.go Outdated Show resolved Hide resolved
interpreter/interpretable.go Outdated Show resolved Hide resolved
interpreter/runtimecost.go Outdated Show resolved Hide resolved
@jpbetz jpbetz changed the title Add hack to preserve runtime cost behavior Fix regression of runtime cost behavior for has() Mar 3, 2023
@jpbetz jpbetz changed the title Fix regression of runtime cost behavior for has() Fix regression of cost behavior for has() Mar 3, 2023
@TristonianJones
Copy link
Collaborator

/gcbrun

TristonianJones
TristonianJones previously approved these changes Mar 3, 2023
Copy link
Collaborator

@jpbetz jpbetz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jpbetz
Copy link
Collaborator

jpbetz commented Mar 6, 2023

/gcbrun

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.

3 participants