https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121856

--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> ---
Created attachment 62348
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62348&action=edit
Proposed fix and proposed new implementation of widesets

The new wideset implementation uses an ARRAY OF BYTE (internally) to represent
large sets.  This does away with the huge struct created with the old
implementation resulting in much quicker declaration times for large set types.
 For example with the contrived test case in this PR it now compiles in a
fraction of the time:

$ time gm2 hugedecl.mod

real    0m0.243s
user    0m0.109s
sys     0m0.052s

Reply via email to