Regarding the proposed Binray Literals Deprecation
H. S. Teoh
hsteoh at qfbox.info
Mon Sep 12 19:07:43 UTC 2022
On Tue, Sep 13, 2022 at 06:05:14AM +1200, rikki cattermole via Digitalmars-d wrote:
>
> On 13/09/2022 5:50 AM, Kagamin wrote:
> > Can't you use escapes there?
>
> Every character you add, increases the file size and slows down your
> editor.
>
> Escapes require extra processing, more memory usage to display, which
> is unnecessary for this this type of data.
Yes, but isn't this a bit making mountains out of molehills? Unless
you're talking about hundreds of thousands of extra characters, the
difference likely to be unnoticeable.
If something on the order of a few hundred extra characters can cause a
noticeable performance hit in your editor, you need to find a new
editor. :-P
Not to mention, it sounds a bit disingenuous to be complaining about
memory usage when DMD carefreely allocates huge amounts of memory (and
never frees it) just to compile a program, such that on a low-memory
system it can't even compile anything except trivial programs before
running out of memory and crashing. A few thousand extra characters in a
source file isn't going to make much of a difference here.
T
--
If blunt statements had a point, they wouldn't be blunt...
More information about the Digitalmars-d
mailing list