Skip to content

Use zmij instead of dtoa-short#426

Closed
nicoburns wants to merge 1 commit intoservo:mainfrom
nicoburns:zmij
Closed

Use zmij instead of dtoa-short#426
nicoburns wants to merge 1 commit intoservo:mainfrom
nicoburns:zmij

Conversation

@nicoburns
Copy link
Contributor

Implementation for testing/discussion.

Looks like it's failing the tests because it's writing values with full precision rather than a restricted precision of "6" for f32 and "15" for f64 (which appears to be the significance of the -short in dtoa-short). I guess we'd need a zmij-short crate for output parity. Or alternatively just accept the more precise/verbose output.

Signed-off-by: Nico Burns <nico@nicoburns.com>
@nicoburns
Copy link
Contributor Author

Servo results: https://github.com/servo/servo/actions/runs/23119769751

A lot of failures unfortunately.

@nicoburns
Copy link
Contributor Author

Probably just going to abandon this for now as making this work (and testing that it's correct and actually faster) looks like it's going to be quite involved, and this is not high-priority for me. If anyone else wants to take this on, then please feel free to adopt this PR.

@nicoburns nicoburns closed this Mar 16, 2026
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.

consider switching to zmij for css numeric serialization

1 participant