• ISSN: 1674-7461
  • CN: 11-5823/TU
  • 主管:中国科学技术协会
  • 主办:中国图学学会
  • 承办:中国建筑科学研究院有限公司

基于代理模式的Cesium模型缓存优化策略及其在公路BIM中的应用

Cesium Model Cache Optimization Strategy Based on Proxy Pattern and Its Application in Highway BIM

  • 摘要: 针对Cesium框架在公路BIM平台中加载大体量BIM模型时因频繁网络请求引发的性能瓶颈问题,本文提出一种非侵入式缓存优化方案。通过ajax-hook库拦截XMLHttpRequest请求,结合IndexedDB与LocalStorage实现模型数据的高效持久化存储与检索。实验表明,该方案显著提升模型加载效率,减少90%以上网络请求耗时,降低内存占用率至5%以内,为大体量BIM模型可视化提供有效技术支持。

     

    Abstract: To address the performance bottleneck caused by frequent network requests when the Cesium framework loads large-volume BIM models in a highway BIM platform, this paper proposes a non-intrusive caching optimization scheme. By intercepting XMLHttpRequest requests through the ajax-hook library and combining IndexedDB with LocalStorage, efficient persistent storage and retrieval of model data are achieved. Experiments show that this scheme significantly improves model loading efficiency, reduces network request time consumption by over 90%, and lowers memory occupancy to within 5%, providing effective technical support for the visualization of large-volume BIM models.

     

/

返回文章
返回