返回题库

Quant Interview Practice Questions

专题
memory_optimization
难度
L1
来源
MyntBit

题目详情

In high-frequency trading systems, dynamically allocating memory on the heap can introduce unpredictable latency spikes that degrade execution speed. To ensure deterministic performance, quantitative developers often pre-allocate a continuous block of memory at startup and manually construct objects within this buffer using placement new. Task Implement a TradeBuffer class that manages a pre-allocated byte buffer capable of holding up to 100 Trade objects. You must implement the following metho