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

Base: bootstrap: eliminate Array-specific length methods #57627

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nsajko
Copy link
Contributor

@nsajko nsajko commented Mar 3, 2025

Three methods of length are deleted.

Made possible by moving the following methods to earlier within the bootstrapping:

  • size(a::Array)
  • length(t::AbstractArray)

Improves abstract return type inference of f(x::Array) = length(a), presumably because the method count is now low enough for the world-splitting optimization to kick in.

Three methods of `length` are deleted.

Made possible by moving the following methods to earlier within the
bootstrapping:
* `size(a::Array)`
* `length(t::AbstractArray)`

Improves abstract return type inference of `f(x::Array) = length(a)`,
presumably because the method count is now low enough for the
world-splitting optimization to kick in.
@nsajko nsajko added the arrays [a, r, r, a, y, s] label Mar 3, 2025
@nsajko nsajko marked this pull request as draft March 6, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrays [a, r, r, a, y, s]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant