Threads sharing heap memory that is constant after initialization

⚓ rust    📅 2025-05-16    👤 surdeus    👁️ 5      

surdeus

Warning

This post was published 44 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