You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it's more general than it needs to be, resulting in the next-power-of-two code appearing in lots of places due to inlining. But vec capacities are usually powers of two. I think it should be something like:
if popcount(capacity) != 1 {
// non-power-of-two case
capacity_slow()
} else {
capacity << 1
}
The text was updated successfully, but these errors were encountered:
Currently it's more general than it needs to be, resulting in the next-power-of-two code appearing in lots of places due to inlining. But vec capacities are usually powers of two. I think it should be something like:
The text was updated successfully, but these errors were encountered: