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
精彩评论