Summary: hasFinalizer field in ClassInfo
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: performance
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from David Simcha <> 2011-06-04 09:55:52 PDT ---
ClassInfo needs a hasFinalizer field that is true iff the class or its ancestor
has a non-empty finalizer.  This way, instead of conservatively flagging all
GC-allocated objects with GC.BlkAttr.FINALIZE, only those that need to be
finalized could be flagged.  On this benchmark
( avoiding
calling empty finalizers results in about a 20% speedup.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to