Skip to content

hashtable benchmarks #3042

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

Closed
nikomatsakis opened this issue Jul 27, 2012 · 1 comment
Closed

hashtable benchmarks #3042

nikomatsakis opened this issue Jul 27, 2012 · 1 comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@nikomatsakis
Copy link
Contributor

We should add some hashtable benchmarks into our set of benchmarks. It's a rather central data structure to the compiler but also most programs. Ideally the benchmark would be targeted against a generic interface so that it can be used to compare the wealth of hashtables that we will eventually offer. =)

@thestinger
Copy link
Contributor

I'm closing this since there's a generic core-map benchmark now. It would be useful to benchmark the hash separately though and compare to optimized SipHash 2-4 implementations.

bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
Do not trim a block from expression if its condition will go multi-line
RalfJung pushed a commit to RalfJung/rust that referenced this issue Aug 31, 2023
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Fetch functions of `atomic_ptr` calls atomic intrinsic functions with
pointer-type arguments (`invalid_mut`), which will cause typecheck
failures. The change in this commit add support of pointer-type
arguments into `codegen_atomic_binop` to fix the issue. The new
`codegen_atomic_binop` will cast pointer arguments to `size_t`, apply op
on them, and then cast the op result back to the pointer type.

The new test include all fetch functions of `atomic_ptr` except for
`fetch_ptr_add` and `fetch_ptr_sub`, which do not call intrinsic
functions.

Resolves rust-lang#3042.

---------

Co-authored-by: Adrian Palacios <[email protected]>
Co-authored-by: Zyad Hassan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

2 participants