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

Improve string rendition of float numbers for sizers #5494

Merged
merged 3 commits into from
Oct 10, 2020

Conversation

schlessera
Copy link
Collaborator

Summary

This PR gets the code in sync with an upstream fix I had submitted to improve the string rendition of float numbers for sizers. Instead of using sizer dimensions like 80.0000%, it uses 80% instead (while still keeping the max precision of 4 decimals in place where needed).

Related: ampproject/amp-toolbox#930

Checklist

  • My pull request is addressing an open issue (please create one otherwise).
  • My code is tested and passes existing tests.
  • My code follows the Engineering Guidelines (updates are often made to the guidelines, check it out periodically).

@schlessera schlessera added Optimizer WS:Perf Work stream for Metrics, Performance and Optimizer labels Oct 10, 2020
@schlessera schlessera added this to the v2.0.5 milestone Oct 10, 2020
@google-cla google-cla bot added the cla: yes Signed the Google CLA label Oct 10, 2020
@github-actions
Copy link
Contributor

Plugin builds for 826b5fe are ready 🛎️!

@westonruter
Copy link
Member

Should this be milestones for 2.1? If merged into the 2.0 branch won't it it fail tests since the amp-toolbox optimizer is pinned?

@westonruter westonruter modified the milestones: v2.0.5, v2.1 Oct 10, 2020
@westonruter
Copy link
Member

@schlessera I'm milestoning for 2.1 for now, and we can re-milestone for 2.0.5 based on whether cherry-picking will cause issues on the 2.0 branch.

@westonruter westonruter merged commit 4f09f24 into develop Oct 10, 2020
@westonruter westonruter deleted the fix/optimizer-precision branch October 10, 2020 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Signed the Google CLA Optimizer WS:Perf Work stream for Metrics, Performance and Optimizer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants