Re: [graphds.h] Allocate graph from obstack

2012-08-20 Thread Dimitrios Apostolou
Hi Paolo, On Mon, 20 Aug 2012, Paolo Bonzini wrote: Il 19/08/2012 18:55, Richard Guenther ha scritto: Initially I had one obstack per struct graph, which was better than using XNEW for every edge, but still obstack_init() called from new_graph() was too frequent. So in this iteration of the pa

Re: [graphds.h] Allocate graph from obstack

2012-08-20 Thread Richard Guenther
On Mon, Aug 20, 2012 at 2:03 PM, Paolo Bonzini wrote: > Il 19/08/2012 18:55, Richard Guenther ha scritto: >>> > Initially I had one obstack per struct graph, which was better than using >>> > XNEW for every edge, but still obstack_init() called from new_graph() was >>> > too frequent. >>> > >>> >

Re: [graphds.h] Allocate graph from obstack

2012-08-20 Thread Paolo Bonzini
Il 19/08/2012 18:55, Richard Guenther ha scritto: >> > Initially I had one obstack per struct graph, which was better than using >> > XNEW for every edge, but still obstack_init() called from new_graph() was >> > too frequent. >> > >> > So in this iteration of the patch the obstack is static global

Re: [graphds.h] Allocate graph from obstack

2012-08-19 Thread Richard Guenther
On Sat, Aug 18, 2012 at 8:10 PM, Dimitrios Apostolou wrote: > Initially I had one obstack per struct graph, which was better than using > XNEW for every edge, but still obstack_init() called from new_graph() was > too frequent. > > So in this iteration of the patch the obstack is static global, in