From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from www523.your-server.de (www523.your-server.de [159.69.224.22]) by sourceware.org (Postfix) with ESMTPS id 17B56385140A for ; Wed, 31 Aug 2022 15:22:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 17B56385140A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tim-lange.me Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tim-lange.me DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tim-lange.me; s=default2108; h=Content-Type:MIME-Version:References: In-Reply-To:Message-Id:Cc:To:Subject:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Sn1XbKiFhB9Wu1EKSqVpZwXd4o42u28B9l+d98LsdMc=; b=t3uzLOCQgOQ4cEtuV6RDpVOKFd UlQU6Iwqpa70nqZLGLPbbrcx0uaGcWUmbN999ydkxISVmV1Es3cbOAw4nUGbnarLUyDrORhfwI8/Z U1THsSwZRmGvtrAtiQXG2Oo5ELTNAncc7kB2c0iiBTWyy+is69VA0mfQUX5AF0bXq5rFYxtr6/FYi f+IxmCjO6tcW0LO+yM8wa2OlavFH0L/SUjBdq7BX9YOJtRY9+ScrhQ38qaagt0OyU7SHbVHXqzvQG PGZhqVUAzoZpttjUstD7VlA0S4I39ZIMi3KWy9++xb79pACis9QId5f1ltAOV17JyEG8JWSRl/Gxf ppx/Rmgg==; Received: from sslproxy03.your-server.de ([88.198.220.132]) by www523.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1oTPY0-0007tb-Jb; Wed, 31 Aug 2022 17:22:32 +0200 Received: from [2a02:908:1861:d6a0::6b5] (helo=fedora) by sslproxy03.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oTPY0-000DWA-DE; Wed, 31 Aug 2022 17:22:32 +0200 Date: Wed, 31 Aug 2022 17:22:26 +0200 From: Tim Lange Subject: Re: Usage of the C++ stdlib unordered_map in GCC To: Jason Merrill Cc: GCC Mailing List Message-Id: In-Reply-To: References: <942GHR.WGPY8O255349@tim-lange.me> X-Mailer: geary/40.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Authenticated-Sender: mail@tim-lange.me X-Virus-Scanned: Clear (ClamAV 0.103.6/26644/Wed Aug 31 09:53:02 2022) X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_INFOUSMEBIZ,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mi, Aug 31 2022 at 10:35:08 -0400, Jason Merrill via Gcc wrote: > Generally we want to use the GCC hash_map because it works with GCC > garbage > collection (and PCH). Is that not relevant to your patch? > > Jason The map is only part a short-lived visitor object inside the analyzer and is used to map svalues to other svalues (in most cases <15 kv pairs). I'm new to GCC, so I started of using what I knew. Only later, I have noticed that the unordered_map is used little to nowhere. It is not much effort to change it but I just wondered whether the usage is so low because GCC only lately switched to C++11 or other reasons. The responses answered my question, thanks. - Tim