How would you implement multi-threading or memory management considerations in a performance-sensitive system?