问题描述
我在Excel中编写了一系列复杂的VBA宏,作为从大型数据集生成数百(甚至数千)数据报告的系统的一部分。
在我的旧桌面上(p4 @ 3.2; 3gb ram)一些宏需要花费数小时才能执行 - 我甚至让它们在一夜之间运行。
我想要一台可以在更短的时间内运行它们的新计算机。所以我们在新的桌面上投入了5k(双核xeon @ 2.8; 4gb ram;双15k rpm硬盘)。
我在两台计算机上运行了一个简单的宏1分钟 - 新计算机大约比旧计算机快三分之一。
我的假设:处理器时钟速度决定了宏的运行速度,而且它是双核心,而xeon与奔腾不会影响速度。
非常感谢任何输入/建议
谢谢,bret
i have written a series of complex VBA macros in excel as part of a system to generate hundreds (even thousands) of data reports from large data sets.
on my old desktop (p4 @ 3.2; 3gb ram) some of the macros take hours to execute - i even let them run overnight.
i wanted a new computer that could run them in much less time. so we invested 5k in a new desktop (dual core xeon @ 2.8; 4gb ram; twin 15k rpm hard drives).
i ran a simple macro for 1 minute on both computers - the new one is about one third SLOWER than the old.
my hypothesis: processor clock speed is what determines the speed at which a macro runs AND the fact that it's a dual core and xeon vs pentium doesn't affect speed.
any input/advice is very much appreciated
thanks, bret
这篇关于运行Excel VBA宏的最快处理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!