rust/library/core/src/fmt
bors 4cf3dc19a1 Auto merge of #76017 - JulianKnodt:fmt_fast, r=nagisa
Use less divisions in display u128/i128

This PR is an absolute mess, and I need to test if it improves the speed of fmt::Display for u128/i128, but I think it's correct.
It hopefully is more efficient by cutting u128 into at most 2 u64s, and also chunks by 1e16 instead of just 1e4.

Also I specialized the implementations for uints to always be non-false because it bothered me that it was checked at all

Do not merge until I benchmark it and also clean up the god awful mess of spaghetti.
Based on prior work in #44583

cc: `@Dylan-DPC`

Due to work on `itoa` and suggestion in original issue:
r? `@dtolnay`
2020-10-04 02:24:20 +00:00
..
rt mv std libs to library/ 2020-07-27 19:51:13 -05:00
builders.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
float.rs flt2dec: properly handle uninitialized memory 2020-09-02 12:41:38 +02:00
mod.rs review: fix nits and move panic safety tests to the correct place 2020-09-25 23:10:24 +02:00
num.rs Use more efficient scheme for display u128/i128 2020-09-28 20:38:38 +00:00