We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc2a29f commit 64712b4Copy full SHA for 64712b4
content/projects/container_image_dist_ref.md
@@ -63,7 +63,7 @@ struct ImgRef<'a> {
63
64
64 bytes is a bit much! Reading the [docs on `&str`](https://doc.rust-lang.org/std/primitive.str.html#representation) pointed out the problem.
65
66
-Each `&str` is made of 2 pointers: a pointer to the underlying data and a pointer-sized length.
+Each `&str` costs 2 pointers' worth of memory: a pointer to the underlying data and a pointer-sized length.
67
If each `&str` segment is pointing to the same underlying data, this means the `ImgRef` struct includes 3 unneeded pointers!
68
69
Representing each part of an image reference as a length of the source string led to some nice savings:
0 commit comments