mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 16:25:52 +03:00
[PR #868] [MERGED] Change hand-picked RNGs back to SmallRng #1123
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#1123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/868
Author: @roderickvd
Created: 10/21/2021
Status: ✅ Merged
Merged: 10/21/2021
Merged by: @roderickvd
Base:
dev← Head:smallrng-dither📝 Commits (1)
ff36484Change hand-picked RNGs back toSmallRng📊 Changes
3 files changed (+7 additions, -34 deletions)
View changed files
📝
Cargo.lock(+0 -10)📝
playback/Cargo.toml(+1 -2)📝
playback/src/dither.rs(+6 -22)📄 Description
I misread the paper and it's better to just stick to what
SmallRnguses by default. It's easier on the eyes, too.While
Xoshiro256Plusis faster on 64-bit, it has low linear complexity in the lower three bits, which are used when generating dither (I thought onlyXoroshiro128had low linear complexity, and I was wrong).And on 32-bit, while
Xoshiro128StarStaraccess one less variable from the heap thanXoshiro128PlusPlus, multiplication is generally slower than addition in hardware.Sorry for the noise.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.