waynexia commented on PR #6336: URL: https://github.com/apache/arrow-rs/pull/6336#issuecomment-2324207844
Thanks for reviewing @alamb. I've created a new example `allocator_api.rs` under `examples/`, and a paragraph in the doc comment of `MutableBuffer` that describes the usage and links to the example. > For example to create a MutableBuffer with a custom allocator and report on the allocations performed or something. I tried to use [`unkai`](https://crates.io/crates/unkai) at first to demo the ability to track memory usage but then I realized I can't add an optional `dev-dependence`. An unconditional dep to `unkai` will break other examples without a nightly toolchain. So the example only uses `Global`. (maybe I should add a similar feature gate to `unkai`?) -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org