This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 3/3] add hash_map class



On 06/24/2014 09:31 PM, Richard Biener wrote:
On June 24, 2014 9:16:34 PM CEST, Trevor Saunders <tsaunders@mozilla.com> wrote:
On Tue, Jun 24, 2014 at 08:23:49PM +0200, Jan Hubicka wrote:
On 06/20/2014 12:52 PM, tsaunders@mozilla.com wrote:
From: Trevor Saunders <tsaunders@mozilla.com>

Hi,

This patch adds a hash_map class so we can consolidate the boiler
plate around
using hash_table as a map, it also allows us to get rid of
pointer_map which I
do in this patch by converting its users to hash_map.
Hello Trev,
    I like your changes! One small question about pointer_set, which
is unable of deletion of items. Do you plan to migrate and simplify
hash_map to be a replacement for pointer_set?
Note that pointer-map use in LTO is quite performance critical. It
would be good to double
check that the new use of hash does not produce slower code.
I believe the compiled code should be very similar, but I'll do  some
measuring to check.
More important is memory use.

Richard.
Hi,
   there's memory usage graph for current trunk and before Trevor's patchset. It looks there's no memory footprint regression.

https://drive.google.com/file/d/0B0pisUJ80pO1OG5uY28yNFRnWTA/edit?usp=sharing

Martin


Trev

Honza



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]