[Issue 5219] New: @noheap annotation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 15 13:45:39 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5219

           Summary: @noheap annotation
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2010-11-15 13:44:26 PST ---
In D often heap allocations are the main cause of low performance code, or they
may cause less deterministic code (in video games, etc).

A function annotation named "@noheap" may help (similar to @nothrow), it makes
sure a function/method contains no heap allocations (new of
arrays/objects/structs, array concat, array append, closures, associative array
insertions, malloc/realloc/calloc, and so on, but not alloca()) and doesn't
call other things that perform heap allocations.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list