在仿真中持久框架不但用于系统的负载平衡而且用于检查点及恢复操作,是并行离散事件仿真(PDES)引擎中至关重要的一层支撑结构。首先提出PDES引擎的层次结构并分析各层的功能,在此基础上提出持久框架的结构,重点研究持久框架的支撑模块——持久库对持久框架性能的影响。通过对基于数据库的持久框架和基于C++模板的持久框架的性能差异进行分析,得出后者更具优越性的结论。
Persistence framework is used not only in load-balancing systems but also in simulation checkpointing and restart, and it is an important layer in parallel discrete event simulation (PDES) engine. A layered architecture of PDES engine was proposed, and then the PDES persistence framework was described, whose performance mainly depends on the persistence library. Two persistence framework implementations based on database and C + + template were compared in performance and friendness aspects, and the result shows that the one based on template has more advantage.