Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(139)

Issue 151055: Direct calling for variadic C functions (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 3 months ago by ebo
Modified:
15 years, 3 months ago
CC:
unladen-swallow_googlegroups.com
Base URL:
http://unladen-swallow.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This patch expands direct calling to more functions in the builtin module and adds support for variadic functions. Changed several functions in list-object and dict-object to use the new calling convention. slowpickle: Min: 0.589025 -> 0.513232: 14.77% faster Avg: 0.602472 -> 0.526819: 14.36% faster Significant (t=7.409267, a=0.95) Stddev: 0.07249 -> 0.07191: 0.80% smaller ai: Min: 0.448522 -> 0.439669: 2.01% faster Avg: 0.454284 -> 0.443105: 2.52% faster Significant (t=8.024329, a=0.95) Stddev: 0.01048 -> 0.00918: 14.10% smaller django: Min: 0.814697 -> 0.820148: 0.66% slower Avg: 0.817904 -> 0.822301: 0.53% slower Significant (t=-7.385589, a=0.95) Stddev: 0.00429 -> 0.00413: 3.75% smaller

Patch Set 1 #

Patch Set 2 : Fixed whitespace problems #

Total comments: 13

Patch Set 3 : Added tests. More whitespace fixes. #

Total comments: 2

Patch Set 4 : Unified METH_FIXED and METH_ARGS into METH_ARGRANGE. #

Total comments: 27

Patch Set 5 : Changed various names. #

Total comments: 13

Patch Set 6 : Another set of naming and whitespace fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -260 lines) Patch
M Include/methodobject.h View 1 2 3 4 5 5 chunks +20 lines, -13 lines 0 comments Download
M Lib/test/test_llvm.py View 3 4 3 chunks +28 lines, -2 lines 0 comments Download
M Objects/dictobject.c View 1 2 3 4 5 4 chunks +13 lines, -20 lines 0 comments Download
M Objects/listobject.c View 1 2 3 4 5 4 chunks +27 lines, -17 lines 0 comments Download
M Objects/methodobject.c View 1 2 3 4 5 4 chunks +32 lines, -18 lines 0 comments Download
M Objects/unicodeobject.c View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M Python/bltinmodule.c View 1 2 3 4 5 25 chunks +135 lines, -157 lines 0 comments Download
M Python/eval.cc View 1 2 3 4 5 5 chunks +17 lines, -9 lines 0 comments Download
M Python/llvm_fbuilder.cc View 1 2 3 4 5 5 chunks +20 lines, -14 lines 0 comments Download
M Util/ConstantMirror.h View 4 1 chunk +2 lines, -1 line 0 comments Download
M Util/RuntimeFeedback.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M Util/RuntimeFeedback.cc View 1 2 3 4 5 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 8
rbp
http://codereview.appspot.com/151055/diff/1011/15 File Include/methodobject.h (right): http://codereview.appspot.com/151055/diff/1011/15#newcode59 Include/methodobject.h:59: int ml_arity; /* Number of parameters for METH_FIXED and ...
15 years, 3 months ago (2009-11-10 19:18:51 UTC) #1
ebo
Included some tests. Fixed the rest of the whitespace problems. http://codereview.appspot.com/151055/diff/1011/15 File Include/methodobject.h (right): http://codereview.appspot.com/151055/diff/1011/15#newcode59 ...
15 years, 3 months ago (2009-11-11 10:14:45 UTC) #2
rbp
http://codereview.appspot.com/151055/diff/1011/15 File Include/methodobject.h (right): http://codereview.appspot.com/151055/diff/1011/15#newcode59 Include/methodobject.h:59: int ml_arity; /* Number of parameters for METH_FIXED and ...
15 years, 3 months ago (2009-11-11 13:39:42 UTC) #3
Collin Winter
http://codereview.appspot.com/151055/diff/1011/15 File Include/methodobject.h (right): http://codereview.appspot.com/151055/diff/1011/15#newcode59 Include/methodobject.h:59: int ml_arity; /* Number of parameters for METH_FIXED and ...
15 years, 3 months ago (2009-11-11 23:03:08 UTC) #4
ebo
PTAL http://codereview.appspot.com/151055/diff/3020/4013 File Objects/methodobject.c (right): http://codereview.appspot.com/151055/diff/3020/4013#newcode41 Objects/methodobject.c:41: if (ml->ml_arity < 0 || ml->ml_arity > PY_MAX_FIXED_ARITY ...
15 years, 3 months ago (2009-11-12 13:06:44 UTC) #5
Jeffrey Yasskin
http://codereview.appspot.com/151055/diff/3020/4013 File Objects/methodobject.c (right): http://codereview.appspot.com/151055/diff/3020/4013#newcode109 Objects/methodobject.c:109: PyObject *args[PY_MAX_FIXED_ARITY] = {NULL, NULL, NULL}; On 2009/11/11 23:03:08, ...
15 years, 3 months ago (2009-11-12 17:47:12 UTC) #6
rbp
I'm still compiling to test properly, but I have to get away for about an ...
15 years, 3 months ago (2009-11-12 20:51:06 UTC) #7
Collin Winter
15 years, 3 months ago (2009-11-14 00:29:03 UTC) #8
I cleaned up the style issues and fixed a failing assertion; committed in r894.

Thanks for the patch!
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b