albertlockett opened a new pull request, #9196: URL: https://github.com/apache/arrow-rs/pull/9196
# Which issue does this PR close? - Closes #9195 . # Rationale for this change When creating a new IPC stream, efficiency can be gained by reusing some of the types involved in building the stream to avoid some allocation cost. `DictionaryTracker` is a type that's difficult to reuse because there's no way to reset the internal state. The linked issue has more discussion of my actual use case. # What changes are included in this PR? Adds a method called `reset` to the `DictionaryTracker` so it can be reused when creating a new IPC stream, avoiding the allocation cost of creating a new instance. # Are these changes tested? Yes I added a test. The test would fail unless this new method is called. # Are there any user-facing changes? New public method on `DictionaryTracker` -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
