[Issue 15038] Associative Array .get property const vs immutable
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Mar 9 21:46:21 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15038
Jon Degenhardt <jrdemail2000-dlang at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jrdemail2000-dlang at yahoo.co
| |m
--- Comment #1 from Jon Degenhardt <jrdemail2000-dlang at yahoo.com> ---
Some discussion in this thread:
https://forum.dlang.org/post/mailman.206.1457557607.26339.digitalmars-d@puremagic.com
The summary is that there can be performance implications if it is necessary to
copy a char[] to a string just to test for presence in the associative array.
This can happen when streaming text from an input source, as it's natural to
read as char[] (eg. File.byLine).
--
More information about the Digitalmars-d-bugs
mailing list