Loading tutorials
Vec, String and Box, and can run cargo build and cargo test. You do not need any knowledge of allocator internals.2 min readVec and String, and how to run cargo test and cargo bench. Later chapters remove allocations. Here you learn to count them, so you can tell whether a change helped.2 min readVec, String and Box are, and that you have read the previous chapter on counting allocations.2 min readVec, String and cargo test. The previous chapter showed that clone and to_string hide allocations. Here you will remove many of them by choosing better function signatures.2 min read&str and String. It also assumes you have seen allocation counting, as in the earlier chapter on measuring allocations.2 min readVec and String, and can run cargo test. It also assumes you have seen how a counting allocator works from the earlier chapter on measuring allocations.2 min readVec and String store data on the heap, and how with_capacity works from the previous chapter. It shows how to keep one buffer alive across a loop so each iteration reuses its memory.3 min readVec and String, and are comfortable with closures and basic iterator methods such as map and filter.2 min readVec grows, what with_capacity does, and how to measure allocations with a counting allocator. Those topics come from earlier chapters.3 min readString and Vec manage capacity, and the basics of Rc and Arc. It covers three types that store text you will not change: Box<str>, Rc<str> and Arc<str>.2 min readVec and Box allocate. It also assumes you can measure allocation counts, as covered earlier in this tutorial.3 min read&str slices and iterator chains. It also assumes you have read the earlier chapters on borrowing and Cow.2 min readGlobalAlloc code like the counting allocator from the measuring chapter. It also assumes you can run cargo build --release and cargo bench. It is the last chapter in the series, so it comes after you have already removed the allocations you can.3 min read