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

ensure require_one_based_indexing can constant-fold for ranges #40358

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Apr 5, 2021

Refs performance issue noted in #38527

As noted there, length(m:n) can throw exceptions, which makes that function quite costly. I'm not sure there is much we can do about that, other than change our ranges to be exclusive [)? 😬

@vtjnash vtjnash merged commit bda6b94 into master Apr 6, 2021
@vtjnash vtjnash deleted the jn/require_one_based_indexing-ranges branch April 6, 2021 15:07
ElOceanografo pushed a commit to ElOceanografo/julia that referenced this pull request May 4, 2021
antoine-levitt pushed a commit to antoine-levitt/julia that referenced this pull request May 9, 2021
johanmon pushed a commit to johanmon/julia that referenced this pull request Jul 5, 2021
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.

1 participant