The following fragment PROGRAM APSI IMPLICIT DOUBLE PRECISION (A-H, O-Z) DIMENSION WORK(1200000) DATA WORK/1200000*0.0D0/ END does not compile in under 7.5 hours. I have no idea how long it does take, as I stopped the process.
Confirmed. Here are some timings. The first column is the array length: 4000: 1.0s 5000: 2.1s 6000: 3.5s 7000: 5.0s 8000: 7.0s 9000: 9.0s 10000: 11.5s 11000: 14.0s 12000: 17.0s This is worse than quadratic! Only assuming quadratic behavior, the original example would take about 2 days on my machine.
*** This bug has been marked as a duplicate of 13465 ***
Subject: Re: Large DATA initialization terminally slow pinskia at gcc dot gnu dot org wrote: > ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-19 14:13 ------- > > > *** This bug has been marked as a duplicate of 13465 *** > Indeed, and - Andrew - I'd pedantically add: It's dupe, dammit - if you want Slashdot, you know where to find it !