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

WISH: faster range() function #167

Open
m-muecke opened this issue Jul 15, 2024 · 0 comments
Open

WISH: faster range() function #167

m-muecke opened this issue Jul 15, 2024 · 0 comments

Comments

@m-muecke
Copy link

m-muecke commented Jul 15, 2024

The current range() function calls R's min and max instead of doing the range call in C with a single loop. Just rewriting the https://github.com/r-devel/r-svn/blob/0211b7df7d3093cf1a7da167f70a855f5181a950/src/library/base/R/range.R#L28 part with cpp11 gave me 1.5-2x improvement.

@m-muecke m-muecke changed the title WISH: faster range function WISH: faster range function Jul 15, 2024
@m-muecke m-muecke changed the title WISH: faster range function WISH: faster range() function Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants