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

Bump conditions #219

Merged
merged 1 commit into from
Feb 13, 2019
Merged

Bump conditions #219

merged 1 commit into from
Feb 13, 2019

Conversation

zhouzhuojie
Copy link
Collaborator

Related to the revert of the bump ecfd3bd

This pr only includes the changes we want

@zhouzhuojie
Copy link
Collaborator Author

zhouzhuojie commented Feb 13, 2019

flame graph

image

No more bottlenecks on the evaluation code path

@codecov-io
Copy link

codecov-io commented Feb 13, 2019

Codecov Report

Merging #219 into master will decrease coverage by 0.23%.
The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #219      +/-   ##
==========================================
- Coverage   85.55%   85.31%   -0.24%     
==========================================
  Files          24       23       -1     
  Lines        1385     1376       -9     
==========================================
- Hits         1185     1174      -11     
- Misses        145      146       +1     
- Partials       55       56       +1
Impacted Files Coverage Δ
pkg/handler/eval.go 82.92% <50%> (-1.03%) ⬇️
pkg/handler/error.go

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4be2291...3bed3b0. Read the comment docs.

@@ -252,7 +252,10 @@ var evalSegment = func(
return vID, log, false
}

func debugConstraintMsg(expr conditions.Expr, m map[string]interface{}) string {
func debugConstraintMsg(enableDebug bool, expr conditions.Expr, m map[string]interface{}) string {
if !enableDebug {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

to avoid unnecessary serialization of constraint if enableDebug is false.

@zhouzhuojie zhouzhuojie merged commit afa306c into master Feb 13, 2019
@zhouzhuojie zhouzhuojie deleted the zz/bump-conditions branch February 13, 2019 17:27
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