If we have a high volume of requests per unit time coming to an single actor, we will experience performance degradation due to having to constantly interrupt and regenerate the expiration fiber. This PR avoids regenerating the fiber each time by storing when the fiber last received a message and calculating how long it should wait from that.
If we have a high volume of requests per unit time coming to an single actor, we will experience performance degradation due to having to constantly interrupt and regenerate the expiration fiber. This PR avoids regenerating the fiber each time by storing when the fiber last received a message and calculating how long it should wait from that.