@Roman Babinicz
Committee through its decisions made because of its vanity/arrogance/ignorance, makes C++ a Frankenstein of a language. This has nothing to do with compiler implementers.


On Wed, Aug 5, 2020 at 6:08 PM Roman Babinicz via Std-Discussion <std-discussion@lists.isocpp.org> wrote:


On 09/07/2020 08:22, Artur Czajkowski via Std-Discussion wrote:
> You (the committee) are destroying the C++ language.

Your anger is misplaced, it is the developers of compiler who decide how
efficient and fast the compilation will be.

There is nothing in the standard that would make it extra hard to write
a compiler that compiles such code in efficient manner;
E.g. if standard would require that two string literals share some
address or otherwise "foo"=="foo" is always true, then it might require
additional step, that sounds quadratic O(n²) in naive implementation.

Perhaps there are GCC options related to string compilation, maybe GCC
tries to optimize identical strings and spends time doing just that or
something?

Contact GCC developers, or perhaps use other compiler like clang.
--
Std-Discussion mailing list
Std-Discussion@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-discussion


--


Best regards
Artur Czajkowski

https://marketplace.visualstudio.com/items?itemName=GitAtomic.GitAtomic