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

BitVector constructor from NTuple #33792

Merged
merged 3 commits into from
Dec 3, 2019

Conversation

matbesancon
Copy link
Contributor

@matbesancon matbesancon commented Nov 8, 2019

Avoids allocating a vector to build BitVector

@mbauman
Copy link
Sponsor Member

mbauman commented Nov 8, 2019

I think this should be done much more consistently and thoroughly, as part of #24595. Now that we have undef initializers, I think we could support any iterable for all AbstractArray constructors.

@matbesancon
Copy link
Contributor Author

the advantage of NTuple instead of iter::Any is that one can leverage the size and constrain the type of input

base/bitarray.jl Outdated Show resolved Hide resolved
@StefanKarpinski
Copy link
Sponsor Member

Bump...

@matbesancon
Copy link
Contributor Author

do we want to restart CI for the failing package_macos build bot?

@StefanKarpinski
Copy link
Sponsor Member

🤷‍♂ It's a known issue and clearly unrelated. Seems unlikely that this change would fail just on Mac.

@StefanKarpinski StefanKarpinski merged commit e86b9e4 into JuliaLang:master Dec 3, 2019
KristofferC pushed a commit that referenced this pull request Apr 11, 2020
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.

4 participants