slawlor / ractor

Rust actor framework
MIT License
1.38k stars 66 forks source link

Performance Improvements #262

Open slawlor opened 1 week ago

slawlor commented 1 week ago

Actors initially were taking an excessive amount of memory for each instance. This is a tracking issue to reduce memory and increase processing time latencies in the actor framework.

Some ideas

slawlor commented 1 week ago

Moving the bounded channels from mpsc::bounded(1) to oneshot()s seems to be able to save us an additional ~18% in memory and more spawning and message processing performance too. #263