commit | a5c565a53493eefd9f0e531003bc2396e3cb726a | [log] [tgz] |
---|---|---|
author | Alexandre Vassalotti <alexandre@peadrop.com> | Sat Jan 09 22:14:46 2010 +0000 |
committer | Alexandre Vassalotti <alexandre@peadrop.com> | Sat Jan 09 22:14:46 2010 +0000 |
tree | 407e0072c1d10ac1003a4651a51095610ae887ed | |
parent | 0c0e229dd0a12eed81e08917339f2f11e12be96c [diff] |
Issue #6688: Optimize PyBytes_FromObject(). - Add special-cases for list and tuple objects. - Use _PyObject_LengthHint() instead of an arbitrary value for the size of the initial buffer of the returned object.