Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/TypeEnvironment.h

    r09c72d5 rbd6e226  
    3737        //
    3838        // I've seen a TU go from 54 minutes to 1 minute 34 seconds with the addition of this comparator.
     39        //
     40        // Note: since this compares pointers for position, minor changes in the source file that affect
     41        // memory layout can alter compilation time in unpredictable ways. For example, the placement
     42        // of a line directive can reorder type pointers with respect to each other so that assertions
     43        // are seen in different orders, causing a potentially different number of unification calls when
     44        // resolving assertions. I've seen a TU go from 36 seconds to 27 seconds by reordering line directives
     45        // alone, so it would be nice to fix this comparison so that assertions compare more consistently.
     46        // I've tried to modify this to compare on mangle name instead of type as the second comparator, but
     47        // this causes some assertions to never be recorded. More investigation is needed.
    3948        struct AssertCompare {
    4049                bool operator()( DeclarationWithType * d1, DeclarationWithType * d2 ) const {
Note: See TracChangeset for help on using the changeset viewer.