josiahyan commented on pull request #8214: URL: https://github.com/apache/arrow/pull/8214#issuecomment-696466268
> I'm clearly missing something. Why doesn't item 2 when directly in the vector solve the same purpose as 1/3? Sorry, I didn't realize that the ArrowBuf was that restricted too; I was focusing on the usage of `lastValueCapacity` and how it got out of sync. I'll try to cache the calculated capacity inside the class itself and handle its invalidation, which should bring this back in line with option 2. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org