missing HexString documentation
H. S. Teoh
hsteoh at quickfur.ath.cx
Thu Feb 8 02:39:47 UTC 2018
On Wed, Feb 07, 2018 at 05:53:43PM -0800, Walter Bright via Digitalmars-d wrote:
> On 2/7/2018 11:29 AM, Ralph Doncaster wrote:
> > I just did a quick check, and with DMD v2.078.1, the hexString
> > template increases code size by ~300 bytes vs the hex literal. So
> > yet one more reason to prefer the hex literals.
>
> Indeed it does, and that is the result of a poor implementation of
> hexString. I've figured out how to fix that, and hope to make a PR for
> it shortly.
>
> https://issues.dlang.org/show_bug.cgi?id=18397
The bug report didn't explain what exactly in the implementation wasn't
done right. :-/
Another data point: instantiating 10000 hex literals causes compilation
time to bloat to 10 seconds. While I'm not saying we should expect user
code to have so many hex literals, the point is that that's unacceptably
slow for D, given our motto of fast-this and fast-that.
T
--
Recently, our IT department hired a bug-fix engineer. He used to work for Volkswagen.
More information about the Digitalmars-d
mailing list