Skip to content

[Don't merge] stdlib: Dictionary, Set: stop overallocating the bitmap #2514

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

Merged
merged 1 commit into from
May 24, 2016

Conversation

gribozavr
Copy link
Contributor

The 'wordsFor(capacity:)' function was supposed to return the size in words, but returned the size in bits, overallocating the bitmap by a factor of 32 or 64, depending on the platform.


Before merging this pull request to apple/swift repository:

  • Test pull request on Swift continuous integration.

Triggering Swift CI

The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:

Smoke Testing

Platform Comment
All supported platforms @swift-ci Please smoke test
OS X platform @swift-ci Please smoke test OS X platform
Linux platform @swift-ci Please smoke test Linux platform

Validation Testing

Platform Comment
All supported platforms @swift-ci Please test
OS X platform @swift-ci Please test OS X platform
Linux platform @swift-ci Please test Linux platform

Note: Only members of the Apple organization can trigger swift-ci.

@gribozavr
Copy link
Contributor Author

@swift-ci Please test and merge

@aschwaighofer
Copy link
Contributor

Ouch. LGTM

@gribozavr gribozavr changed the title stdlib: Dictionary, Set: stop overallocating the bitmap [Don't merge] stdlib: Dictionary, Set: stop overallocating the bitmap May 14, 2016
@gribozavr
Copy link
Contributor Author

There's another bug here, please don't merge.

@gribozavr gribozavr force-pushed the stdlib-dont-overallocate-in-set-and-dictionary branch from d9f2e05 to 6409889 Compare May 24, 2016 01:47
The 'sizeInWords(forSizeInBits:)' function was supposed to return the
size in words, but returned the size in bits, overallocating the bitmap
by a factor of 32 or 64, depending on the platform.
@gribozavr gribozavr force-pushed the stdlib-dont-overallocate-in-set-and-dictionary branch from 6409889 to d74b183 Compare May 24, 2016 04:12
@gribozavr
Copy link
Contributor Author

@swift-ci Please test and merge

@gribozavr
Copy link
Contributor Author

CI failure is unrelated.

@gribozavr gribozavr merged commit 09f943a into master May 24, 2016
@gribozavr gribozavr deleted the stdlib-dont-overallocate-in-set-and-dictionary branch May 24, 2016 05:53
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.

2 participants