2 Matching Annotations
- Jan 2021
-
doc.rust-lang.org doc.rust-lang.org
-
We could have called a.clone() rather than Rc::clone(&a), but Rust’s convention is to use Rc::clone in this case. The implementation of Rc::clone doesn’t make a deep copy of all the data like most types’ implementations of clone do. The call to Rc::clone only increments the reference count, which doesn’t take much time. Deep copies of data can take a lot of time. By using Rc::clone for reference counting, we can visually distinguish between the deep-copy kinds of clones and the kinds of clones that increase the reference count. When looking for performance problems in the code, we only need to consider the deep-copy clones and can disregard calls to Rc::clone
Tags
Annotators
URL
-
- Sep 2016
-
online.salempress.com.lacademy.idm.oclc.org online.salempress.com.lacademy.idm.oclc.org
-
Colombian arts were heavily influenced by the Roman Catholic Church
RC influenced art
-