[Bug fortran/13465] [gfortran] Data statement for large arrays compiles verrrry slllowwwly and shows quadratic behaviour.
tobi at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Jun 4 13:02:00 GMT 2004
------- Additional Comments From tobi at gcc dot gnu dot org 2004-06-04 13:02 -------
The quadratic complexity comes from linearly traversing the list of data
initializers and then calling gfc_assign_data_value which in turn calls
gfc_insert_constructor. gfc_insert_constructor searches linearly through the
array until it finds the right place to insert the constructor. Hence we have
quadratic complexity.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13465
More information about the Gcc-bugs
mailing list