4 ms·
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+A
by hu3 1y 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=code 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&type=code 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=code https://github.com/search?q=repo%3Acgag%2Floc%20Arc%3C&type=...
- qzw 1y agoAppreciate the real numbers. Would be interesting to see what percentage of data structures contain Arc, but that's a lot more work.
- tptacek 1y agoWhy would you expect the AWS SDK to have complicated memory management?
- liuliu 1y ago- 454 instances of "Rc<" in Servo: https://github.com/search?q=repo%3Aservo%2Fservo+Rc%3C&type=code 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&type=code 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=code https://github.com/search?q=repo%3Acgag%2Floc+Rc%3C&type=cod... (Disclaimer: I don't know what these repos are except Servo).
- Ygg2 1y agoServo 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.
- bsder 1y agoDon't forget clone()