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

Update from main #2

Merged
merged 67 commits into from
Sep 26, 2023
Merged

Update from main #2

merged 67 commits into from
Sep 26, 2023

Conversation

DrBlury
Copy link
Owner

@DrBlury DrBlury commented Sep 26, 2023

No description provided.

masmullin2000 and others added 30 commits September 23, 2023 19:34
hyperfine upped to 100 for the "fast" languages
run.sh added clean
Added go concurrency alternative
Some more speed improvements to rust and rust_rayon
… This was worth ~100ms, now runs in 540ms without IO.
* extract processing to `process` function.
  Using `collect()` is nicer anyway, particularly for the Rayon
  version where `ParallelIterator::collect` avoids locking.

* if given a number of seconds, re-run the algorithm for that time.

* build with enough debugging info to make `samply` happy
* for the five 5, use the more efficient bulk heapify op provided
  by `BinaryHeap::from_iter`.

* use a wrapper type that only compares the count. It was doing this
  before when deciding whether to put something into the heap, but not
  within the heap. This is quite verbose but oh well.

* use `peek_mut` rather than `peek` + `pop` + `push`.
fix: shadowed variable i because it's the same variable as in the outer for loop
use same file variable in go_con to remove one additional variable
@DrBlury DrBlury merged commit fca596a into DrBlury:main Sep 26, 2023
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.

8 participants