Effect of Screen Updating

前端 未结 5 1725
梦谈多话
梦谈多话 2020-12-03 03:04

I have been playing around measuring code execution times to gauge differences between executing my scripts locally and on my server. At one point I forgot to disable

5条回答
  •  暖寄归人
    2020-12-03 03:43

    There is one important thing to know about screen updating which I didn’t see in any previous answer. From my own test I find out that turning screen updating off and on takes about 15ms (tested in C# via Excel Interop). Keep that on mind if you will execute anything which would take less time. And after all don’t turn screen updating on/off many times in some loop. That would be real performance killer.

    And one more note (which you probably don’t want to hear) if you want it quick use C++. It is typically 5 to 10 times quicker (don’t catch me here it depends on what you really do) than VBA.

提交回复
热议问题