Closed MBkkt closed 1 year ago
Also I think really correct code, should start with non zero capacity (so correct capacity can be seted in ctor)
Why? Feel free to send another PR if you think there are more improvements.
Why? Feel free to send another PR if you think there are more improvements
Because we always have some capacity on "stack". Same as for sso string.
Because we always have some capacity on "stack". Same as for sso string.
I'm not sure what you mean. There's already inline SSO-like space allocated: https://github.com/google/s2geometry/blob/e15d00b21e9bbc252e436c243710cb9712465814/src/s2/util/gtl/compact_array.h#L127
Send a PR to make it clear.
I mean sso string after default ctor have non zero capacity. Why same not possible for this array?
Anything is possible. Send a PR if you think it can be improved.
Also I think really correct code, should start with non zero capacity (so correct capacity can be seted in ctor)