Skip to content

Commit 0cbb850

Browse files
committed
Adapt heapsize for &str
1 parent 486b014 commit 0cbb850

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

datafusion/common/src/heap_size.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ impl DFHeapSize for String {
314314

315315
impl DFHeapSize for str {
316316
fn heap_size(&self) -> usize {
317-
self.to_string().capacity()
317+
self.as_bytes().len()
318318
}
319319
}
320320

0 commit comments

Comments
 (0)