摘要
为了解决长列表渲染下页面卡顿的问题,文章总结并实现了当前开发过程中最高效的两种渲染长列表的方式,分页加载和虚拟加载,并在虚拟加载的基础上对其进行了合理优化,降低了它的计算复杂度,扩大了它的使用场景。这两种方式都是通过将长列表进行切片处理,分割成一个个的短列表,根据用户操作,不断的更新渲染对应的短列表,进而提高页面的性能。文章深入探索了这两种方式的实现原理和底层结构,并从开发难度、性能提升、扩展性、设计思想、适用场景等方面进行了比较。
In order to optimize the problem of page stutter under long list rendering,this article summarizes and improves the two most efficient ways to render lists in the current development process,page loading and virtual loading,on the basis of the virtual load was carried out reasonably optimized to reduce its computational complexity,expanded its usage scenarios.In these two methods,the long list is sliced and divided into short lists.According to user operations,the corresponding short list is continuously updated and rendered,which improves the performance of the page.This article explores the implementation principles and underlying structure of these two methods in depth,and compares them in terms of development difficulty,performance improvement,scalability,programming ideas,and applicable scenarios.
作者
岑志鹏
陶智勇
CEN Zhipeng;TAO Zhiyong(Department of Telecommunications,Wuhan Institute of Posts and Telecommunications,Wuhan,430074,China)
出处
《网络新媒体技术》
2020年第5期62-66,共5页
Network New Media Technology
基金
湖北农村地区宽带建设及信息服务发展策略研究(湖北省教委科研基金)项目编号(D20143005)。
关键词
长列表
分页加载
虚拟加载
性能提升
long list
paged loading
virtual loading
performance improvement