alamb opened a new issue, #4798:
URL: https://github.com/apache/arrow-rs/issues/4798
**Is your feature request related to a problem or challenge? Please describe
what you are trying to do.**
In InfluxDB IOx we cache `ObjectMeta` (among other things) and thus
calculate the memory used in order to limit the amount of memory used for
caching
**Describe the solution you'd like**
In order to have accurate memory usage accounting, it would be nice to have
an API like
```rust
impl ObjectMeta {
/// return the total bytes of memory used by this object, including heap
space
pub fn memory_bytes(&self) -> usize {
...
}
}
```
**Describe alternatives you've considered**
We could cache the raw data directly as `Strings` and recreate `ObjectMeta`
when needed
**Additional context**
See context in
https://github.com/influxdata/influxdb_iox/pull/8577/files#r1316378812
--
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]