zacharygolba / via

A multi-threaded async web framework for people who appreciate simplicity.
Apache License 2.0
1 stars 0 forks source link

feat(via): add a fast path to IoStream #18

Closed zacharygolba closed 1 month ago

zacharygolba commented 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.