C++ Logo

std-discussion

Advanced search

Re: extremely long compile time with large number of string literals

From: Artur Czajkowski <atch.cpp_at_[hidden]>
Date: Wed, 5 Aug 2020 19:18:55 +0200
@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_at_[hidden]> 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_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-discussion
>


-- 
Best regards
*Artur Czajkowski*
https://marketplace.visualstudio.com/items?itemName=GitAtomic.GitAtomic

Received on 2020-08-05 12:22:33