返回题库

Quant Interview Practice Questions

专题
systems
难度
L3
来源
MyntBit

题目详情

Quantitative backtesting engines often process terabytes of historical tick data where loading the entire dataset into memory is computationally infeasible. Modern systems utilize memory-mapped files and mechanisms like userfaultfd to lazily load data pages on demand, evicting stale pages when memory limits are reached. Task Implement a simulator for a lazy page loader using a Least Recently Used (LRU) eviction policy. You must complete the LazyDataLoader class, which is initialized with p_size