Garbage Collection Challenges

Garbage collection can introduce latency issues, especially when it stalls threads during queries. Understanding the lifetime of objects allows for efficient manual memory management, particularly with short queries where deallocation can occur at the end. However, longer queries complicate this process, necessitating careful design to avoid cycles when using shared pointers.