Threads sharing heap memory that is constant after initialization

⚓ Rust    📅 2025-05-16    👤 surdeus    👁️ 6      

surdeus

Warning

This post was published 96 days ago. The information described in this article may have changed.

If it does not use a lot of memory, and initialization does not use a lot of cpu, is it faster to somehow share one object that is constant after initialization or to have a separate object and initialization for each thread.

2 posts - 2 participants

Read full topic

🏷️ rust_feed