开发者

LVM_INSERTITEM very slow in vista/W7

in a large listview control collection (say 5000 items), adding a SINGLE extra item can take 10+ seconds in windows vista/7, and that's just the LVM_INSERTITEM message handling

it looks that it only affects LVS_ICON, LVS_REPORT and LVS_LIST are still very fast

can anybody confirm this?

the same code on windows XP with similar listview window styles adds an extra item instantly

thanks nik开发者_JAVA技巧os


No repro on Win7. Adding 5000 items takes forever, adding one is quick. Are you sure it isn't the image list that's slow?

Diagnose this by setting up Windows debugging symbols and using Debug + Break All. Check out the call stack for a pattern. Post what you see in your question if you need help interpreting it.


If you've got that much data, consider using a virtual ListView

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜