Skip to content

Bump conditions#219

Merged
zhouzhuojie merged 1 commit into
masterfrom
zz/bump-conditions
Feb 13, 2019
Merged

Bump conditions#219
zhouzhuojie merged 1 commit into
masterfrom
zz/bump-conditions

Conversation

@zhouzhuojie
Copy link
Copy Markdown
Collaborator

Related to the revert of the bump ecfd3bd

This pr only includes the changes we want

@zhouzhuojie
Copy link
Copy Markdown
Collaborator Author

zhouzhuojie commented Feb 13, 2019

flame graph

image

No more bottlenecks on the evaluation code path

@codecov-io
Copy link
Copy Markdown

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.

Comment thread pkg/handler/eval.go

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
Copy Markdown
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