[Issue 4681] Appender access violation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 26 06:20:26 PDT 2010


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



--- Comment #13 from nfxjfg at gmail.com 2010-08-26 06:20:17 PDT ---
(In reply to comment #12)
> Why are runtime calls dirty?  I don't use any undocumented runtime functions...

Because they do more work than necessary and rely on more implementation
details than necessary. Also, more bugs (oh hey look, we're posting in a bug
report). I'm most worried about the assumptions of the array memory layout.

> Because the call to the runtime cannot be inlined, and is much slower than
> simply dereferencing a pointer.  Appender is supposed to be as fast as possible
> at appending.

My code only calls runtime functions when the capacity is exhausted. As long as
there's enough capacity, not a single runtime function is called on appending.
It's really similar to all the code that has been in Appender before, except
less dirty.

-- 
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