Skip to content

Optimizations for tuples using. Removed unused types transformations. - #263

Merged
brian-brazil merged 1 commit into
prometheus:masterfrom
umax:optimize-use-of-tuples
Mar 28, 2018
Merged

brian-brazil merged 1 commit into
prometheus:masterfrom
umax:optimize-use-of-tuples

Conversation

@umax

@umax umax commented Mar 26, 2018

Copy link
Copy Markdown
Contributor

Simple optimizations of tuple using.

Comment thread prometheus_client/core.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What performance difference does this make?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No difference, just more shorted and more Pythonyc.
If you prefer, I can remove this changes from PR.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's fine as-is, and I'd expect it to be faster this way

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated.

@umax
umax force-pushed the optimize-use-of-tuples branch from cdbbdbb to a84ba47 Compare March 26, 2018 13:49
@brian-brazil
brian-brazil merged commit 1a16fd0 into prometheus:master Mar 28, 2018
@brian-brazil

Copy link
Copy Markdown
Contributor

Thanks!

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