▲ | hu3 3 days ago | ||||||||||||||||
I did some quick search, not sure if this supports or denies your point: - 151 instances of "Arc<" in Servo: https://github.com/search?q=repo%3Aservo%2Fservo+Arc%3C&type... - 5 instances of "Arc<" in AWS SDK for Rust https://github.com/search?q=repo%3Arusoto%2Frusoto%20Arc%3C&... - 0 instances for "Arc<" in LOC https://github.com/search?q=repo%3Acgag%2Floc%20Arc%3C&type=... | |||||||||||||||||
▲ | liuliu 3 days ago | parent | next [-] | ||||||||||||||||
- 454 instances of "Rc<" in Servo: https://github.com/search?q=repo%3Aservo%2Fservo+Rc%3C&type=... - 6 instances of "Rc<" in AWS SDK for Rust: https://github.com/search?q=repo%3Arusoto%2Frusoto+Rc%3C&typ... - 0 instance for "Rc<" in LOC: https://github.com/search?q=repo%3Acgag%2Floc+Rc%3C&type=cod... (Disclaimer: I don't know what these repos are except Servo). | |||||||||||||||||
▲ | Ygg2 3 days ago | parent | prev | next [-] | ||||||||||||||||
Servo has to interact a lot with a JS runtime, and it needs to be done in a thread safe and concurrent manner. Plus the html processing needs to be Arc as well, so that tracks. | |||||||||||||||||
▲ | tptacek 3 days ago | parent | prev | next [-] | ||||||||||||||||
Why would you expect the AWS SDK to have complicated memory management? | |||||||||||||||||
| |||||||||||||||||
▲ | qzw 3 days ago | parent | prev | next [-] | ||||||||||||||||
Appreciate the real numbers. Would be interesting to see what percentage of data structures contain Arc, but that's a lot more work. | |||||||||||||||||
▲ | bsder 3 days ago | parent | prev [-] | ||||||||||||||||
Don't forget clone() |