> 1. multi-threaded RC operations are going to be atomic -> expensive.
In case this idea hasn't been floated before (I didn't read the list archives) -- wouldn't it be a very good idea to have a task-local refcount, and only atomically decrease the central refcount once the task-local one reaches zero. This would require the references to be (pointer, local-refcount) pairs, so it adds some indirection and overhead, but seems vastly superior to an approach that would do atomic central counting. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
