[PATCH,c++] use a VEC in typeck2.c:build_x_arrow

Mark Mitchell mark@codesourcery.com
Tue Jun 1 19:29:00 GMT 2010


Nathan Froyd wrote:
> The patch below converts build_x_arrow to use a VEC rather than a
> TREE_LIST for the types_memoized variable.  I hope the number of types
> this function is expected to encounter is small...

Yeah...  But, even if O(N) == O(N), your patch sure should help with the
constant factor.

> 	* typeck2.c (build_x_arrow): Make types_memoized a VEC.

OK.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list