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

Get rid of the applicable call in rand(Range1) #3756

Merged
merged 1 commit into from
Jul 18, 2013
Merged

Get rid of the applicable call in rand(Range1) #3756

merged 1 commit into from
Jul 18, 2013

Conversation

lindahua
Copy link
Contributor

Relying on multiple dispatch mechanism, we can get rid of the applicable call which is a performance killer for the function rand.

This version is about 16x - 20x faster than the original one.

This is the first step to address #3751.

@StefanKarpinski
Copy link
Sponsor Member

Yes, that seems much more reasonable. cc: @JeffBezanson, @ViralBShah

JeffBezanson added a commit that referenced this pull request Jul 18, 2013
Get rid of the applicable call in rand(Range1)
@JeffBezanson JeffBezanson merged commit c9a537a into JuliaLang:master Jul 18, 2013
@ViralBShah ViralBShah added the domain:randomness Random number generation and the Random stdlib label Nov 22, 2014
KristofferC pushed a commit that referenced this pull request Feb 1, 2024
Stdlib: Pkg
URL: https://github.com/JuliaLang/Pkg.jl.git
Stdlib branch: master
Julia branch: master
Old commit: ba4955e2e
New commit: f3b81f1aa
Julia version: 1.11.0-DEV
Pkg version: 1.11.0
Bump invoked by: @KristofferC
Powered by:
[BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl)

Diff:
JuliaLang/Pkg.jl@ba4955e...f3b81f1

```
$ git log --oneline ba4955e2e..f3b81f1aa
f3b81f1aa disable `julia_version` tests (#3773)
b13bd2ddf support the "path" key in Project.toml, (#3756)
731105126 why: show more when package is both a direct and indirect dep (#3771)
a83783ecb Avoid deleting existing artifacts when ignoring hashes. (#3768)
b43187590 ignore tree hashes on Windows w/o symlink capability (#3764)
```

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:randomness Random number generation and the Random stdlib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants