I am finding that the runtime on a code can vary between two "fixed" values. It does a fair anount of computations and it invovles a lot of allcoatable arrays, some designated as volatile.
The runtime can change by as much as 30% (e.g. 1hr vs 40 min)
1. It can change from one "speed" to the next if I recompile with a most insigngficant change in the code yet it is unpredictable.i.e. undoing the change does not give the old runtime back.
2.Once it changes "speed", it tends to stay that way until the next time it decides to change.
3. ONLY once I observed that it changed runtime after a cold restart without a recompile. This could have been a fluke(?).
4. The only unusual aspects to the code are:
(a) it is a comserver called by vba and (b) it in turn calls another dll which happens to contain several allocatables with the volatile attribute.
Has anyone encountered this this situation before?
Is there a way to dig deeper into the cause of such behaviors.
Thanks in advance,