Skip to content

Prepare new releases, from_rng Endianness and inlining#815

Merged
dhardy merged 14 commits intorust-random:masterfrom
dhardy:from-rng
Jun 6, 2019
Merged

Prepare new releases, from_rng Endianness and inlining#815
dhardy merged 14 commits intorust-random:masterfrom
dhardy:from-rng

Conversation

@dhardy
Copy link
Member

@dhardy dhardy commented Jun 5, 2019

Prepare the 0.7 pre-release and releases of many other crates (the only one without changes is PCG, though some are just doc).

Important: this is missing rand_distr which I asked @vks to look at.

Also closes #572, most of which was already implemented (probably as part of #800).

@dhardy
Copy link
Member Author

dhardy commented Jun 5, 2019

Rebased with your suggestions

Copy link
Contributor

@vks vks left a comment

Choose a reason for hiding this comment

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

Looks good! The tests fail apparently because of the rand requirement of rand_distr.

@dhardy
Copy link
Member Author

dhardy commented Jun 5, 2019

Hopefully that should fix the tests.

@dhardy
Copy link
Member Author

dhardy commented Jun 6, 2019

Turns out #572 isn't just documentation: the custom implementation for XorShiftRng needed fixing. Curiously the custom implementations for the ISAAC RNGs already have fixed Endianness.

@dhardy
Copy link
Member Author

dhardy commented Jun 6, 2019

Use of #[inline] adjusted (see #817). Benchmarks mostly look similar or a little better (especially init_hc128: 4860 → 4448).

@dhardy dhardy changed the title Prepare new releases Prepare new releases, from_rng Endianness and inlining Jun 6, 2019
@dhardy dhardy merged commit fa83071 into rust-random:master Jun 6, 2019
@dhardy dhardy deleted the from-rng branch June 6, 2019 15:46
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.

from_rng and value-stability

2 participants