From 74141d650ff040128a5e35ba8f721d96b08843a3 Mon Sep 17 00:00:00 2001 From: "ajwong@chromium.org" Date: Wed, 23 Nov 2011 21:03:03 +0000 Subject: Increase Bind/Callback Arity from 6 -> 11: These go to eleven. This is only for a build time stress test only. I will revert back to 6 after getting the data. 11 allows for binding of 11 arguments to a function, and 10 arguments to a method. 10 seemed like a nice round number to try (MSVC's tr1::bind() only supports 10). Template Growth rate (n == arity): bind.h: n bind_internal.h: (n^2 + 20n)/2 bind_internal_win.h: n callback.h: n Template growth equation: (n^2 + 26n) / 2 Template growth: 96 -> 203 types BUG=98542 TEST=try bots. Then we get to watch the bot cycle times. Review URL: http://codereview.chromium.org/8682015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111410 0039d316-1c4b-4281-b951-d872f2087c98 --- base/bind_internal.h.pump | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'base/bind_internal.h.pump') diff --git a/base/bind_internal.h.pump b/base/bind_internal.h.pump index 1192974..0459897 100644 --- a/base/bind_internal.h.pump +++ b/base/bind_internal.h.pump @@ -11,7 +11,7 @@ $$ // // Do we want to allow creating a fully unbound method?? -$var MAX_ARITY = 6 +$var MAX_ARITY = 11 $range ARITY 0..MAX_ARITY // Copyright (c) 2011 The Chromium Authors. All rights reserved. -- cgit v1.1