Project

General

Profile

Bug #1458

Updated by John Abbott almost 4 years ago

I have just made @SmoothFactor@ interruptible. Testing revealed disappointing performance.

<pre>
N := factorial(1000000);
facs := SmoothFactor(N,1000000); --> then manually interrupt... TAKES ALMOST 9s!
</pre>

Some delay is inevitable, but 9s was long enough that I originally thought the interrupt mechanism was not working.

The situation is somewhat worse if I do the following:
<pre>
N := factorial(1000);
facs := SmoothFactor(N,1000000);
N := factorial(1000000);
facs := SmoothFactor(N,1000000); --> manually interrupt... STILL RUNNING AFTER 900s 300s
</pre>

I thought 9s delay was bad... oh ho!

Fix this!!

Back