SWT TreeViewer的速度很慢,可以与孩子的Thousend扩展节点
我有一个过滤的树,一个节点包含10000名儿童。首次扩展该节点大约需要60秒。之后几乎是瞬间。我的猜测是为每个孩子重新绘制了树。是否有一种方法可以使REDRAW仅在单击节点进行展开并创建所有TreeItem之后才发生一次?
I have a FilteredTree, and one node contains 10000 children. Expanding that node for the first time takes about 60 seconds. After that it's almost instant. My guess it's that it redraws the tree for each children. Is there a way to make the redraw happen only once after the node was clicked to expand and all treeItems were created ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论