Skip to content

Conversation

@Moelf
Copy link
Contributor

@Moelf Moelf commented May 8, 2022

close #45232

@KristofferC KristofferC merged commit bc0fae2 into JuliaLang:master May 11, 2022
N5N3 added a commit to N5N3/julia that referenced this pull request May 11, 2022
@Moelf Moelf deleted the length_range_typestability branch May 11, 2022 15:33
N5N3 added a commit to N5N3/julia that referenced this pull request May 12, 2022
N5N3 added a commit to N5N3/julia that referenced this pull request May 12, 2022
N5N3 added a commit to N5N3/julia that referenced this pull request May 17, 2022
N5N3 added a commit to N5N3/julia that referenced this pull request Jul 25, 2022
vtjnash added a commit that referenced this pull request Aug 10, 2022
* Follow up to #45236 (make `length(::StepRange{Int8,Int128})` type-stable)
* Fully drop `_tuple_any` (unneeded now)
* Make sure `has_offset_axes(::StepRange)` could be const folded.
  And define some "cheap" `firstindex`
* Do offset axes check on `A`'s parent rather than itself.
  This avoid some unneeded `axes` call, thus more possible be folded by the compiler.

Co-authored-by: Jameson Nash <[email protected]>
ffucci pushed a commit to ffucci/julia that referenced this pull request Aug 11, 2022
* Follow up to JuliaLang#45236 (make `length(::StepRange{Int8,Int128})` type-stable)
* Fully drop `_tuple_any` (unneeded now)
* Make sure `has_offset_axes(::StepRange)` could be const folded.
  And define some "cheap" `firstindex`
* Do offset axes check on `A`'s parent rather than itself.
  This avoid some unneeded `axes` call, thus more possible be folded by the compiler.

Co-authored-by: Jameson Nash <[email protected]>
pcjentsch pushed a commit to pcjentsch/julia that referenced this pull request Aug 18, 2022
* Follow up to JuliaLang#45236 (make `length(::StepRange{Int8,Int128})` type-stable)
* Fully drop `_tuple_any` (unneeded now)
* Make sure `has_offset_axes(::StepRange)` could be const folded.
  And define some "cheap" `firstindex`
* Do offset axes check on `A`'s parent rather than itself.
  This avoid some unneeded `axes` call, thus more possible be folded by the compiler.

Co-authored-by: Jameson Nash <[email protected]>
@nsajko nsajko added the ranges Everything AbstractRange label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ranges Everything AbstractRange

Projects

None yet

Development

Successfully merging this pull request may close these issues.

length(r::StepRange{Int, Int128}) is not type stable

6 participants