Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Ticket #339 (new enhancement)

Opened 15 years ago

calls to _d_callfinalizer could be optimized away sometimes

Reported by: ChristianK Assigned to: lindquist
Priority: minor Milestone:
Component: backend Version: hg tip
Keywords: optimization Cc:

Description

If neither the class nor any of its parents have a destructor, the call to _d_callfinalizer could be removed for scope classes. Check rt_finalize in lifetime.d. Instead we could check the monitor and _d_monitordelete directly.

Copyright © 2008, LDC Development Team.