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


Steven Schveighoffer <schvei...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schvei...@yahoo.com
          Component|druntime                    |DMD
         AssignedTo|s...@invisibleduck.org      |nob...@puremagic.com
           Severity|major                       |enhancement


--- Comment #1 from Steven Schveighoffer <schvei...@yahoo.com> 2010-07-19 
13:10:48 PDT ---
DMD is the main culprit here, not druntime.  And this is not a bug, it's an
enhancement.  DMD functions exactly as designed.

DMD is the one generating the code to call the arrayNew function with length 1.
 Druntime cannot tell between someone actually allocating an array of 1 or
someone allocating a single struct.

With the "Appendable" bit I just added for druntime, this could be alleviated
if the compiler would call a separate function for struct allocators.

As a workaround, you can pre-allocate a large block of nodes, which will only
have one byte of pad per block allocated.

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

Reply via email to