This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [fortran,patch] Don't write common more than once in a module file (PR 30285)


This is quadratic in the numbers of commons in a module. Please make written_common a balanced tree (such as our BBT_HEADER & associates, this would leave us with O(N log(N)) complexity) or a hashtable (leaving us with O(N) or something like that).


Here's the updated patch, using a balanced tree. A careful review is welcome, as it's the first time I deal with these bbt features.


Boostrapped and finishing regtesting on x86_64-linux. OK to commit if it passes?

FX


Attachment: pr30285_2.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]