Closed zacharygolba closed 1 month ago
Adds a fast path for the lock acquisition in IoStream. Since this is the common case, we avoid an Arc::clone and heap allocation nearly 100% of the time while still upholding the safety requirements of the unsafe blocks in the code.
Adds a fast path for the lock acquisition in IoStream. Since this is the common case, we avoid an Arc::clone and heap allocation nearly 100% of the time while still upholding the safety requirements of the unsafe blocks in the code.