Jack Diederich
2d40077b4f
needforspeed: use PyObject_MALLOC instead of system malloc for small
...
allocations. Use PyMem_MALLOC for larger (1k+) chunks. 1%-2% speedup.
2006-05-27 15:44:34 +00:00
Kristján Valur Jónsson
2b38e40a5a
Add a PCBuild8 build directory for building with Visual Studio .NET 2005. Contains a special project to perform profile guided optimizations on the pythoncore.dll, by instrumenting and running pybench.py
2006-05-27 15:41:31 +00:00
Fredrik Lundh
0b7ef46950
needforspeed: stringlib refactoring: use find_slice for stringobject
2006-05-27 15:26:19 +00:00
Fredrik Lundh
60d8b18831
needforspeed: stringlib refactoring: changed find_obj to find_slice,
...
to enable use from stringobject
2006-05-27 15:20:22 +00:00
Fredrik Lundh
c2d29c5a6d
needforspeed: replace improvements, changed to Py_LOCAL_INLINE
...
where appropriate
2006-05-27 14:58:20 +00:00
Georg Brandl
94b8c122fd
Remove spurious semicolons after macro invocations.
2006-05-27 14:41:55 +00:00
Andrew Dalke
d49d5c49ba
cleanup - removed trailing whitespace
2006-05-27 14:16:40 +00:00
Tim Peters
4e30617bad
The cheery optimism of old age.
2006-05-27 14:13:13 +00:00
Georg Brandl
e895318ee2
Always close BZ2Proxy object. Remove unnecessary struct usage.
2006-05-27 14:02:03 +00:00
Richard Jones
87f5471230
credit where credit is due
2006-05-27 13:50:42 +00:00
Andrew M. Kuchling
dae266ec61
Mention new-style exceptions
2006-05-27 13:44:37 +00:00
Tim Peters
de41dc865a
More random thrashing trying to understand spurious
...
Windows failures. Who's keeping a bz2 file open?
2006-05-27 12:36:53 +00:00
Georg Brandl
b7c8f54c33
Add news item for new-style exception class branch merge.
2006-05-27 12:30:25 +00:00
Richard Jones
7b9558d37d
Conversion of exceptions over from faked-up classes to new-style C types.
2006-05-27 12:29:24 +00:00
Bob Ippolito
1fcdc232db
Fix up struct docstrings, add struct.pack_to function for symmetry
2006-05-27 12:11:36 +00:00
Bob Ippolito
90bd0a554e
Remove the range checking and int usage #defines from _struct and strip out the now-dead code
2006-05-27 11:47:12 +00:00
Andrew M. Kuchling
b98d65c0b7
Add Py_LOCAL macros
2006-05-27 11:26:33 +00:00
Martin v. Löwis
2e3f6b77d5
Revert bogus change committed in 46432 to this file.
2006-05-27 11:07:49 +00:00
Andrew Dalke
e0df762719
fixed typo
2006-05-27 11:04:36 +00:00
Fredrik Lundh
7a83089c06
needforspeed: backed out the Py_LOCAL-isation of ceval; the massive in-
...
lining killed performance on certain Intel boxes, and the "aggressive"
macro itself gives most of the benefits on others.
2006-05-27 10:39:48 +00:00
Fredrik Lundh
2d23d5bf2e
needforspeed: more stringlib refactoring
2006-05-27 10:05:10 +00:00
Martin v. Löwis
d532ba0746
Explain why 'consumed' is initialized.
2006-05-27 08:54:29 +00:00
Martin v. Löwis
d004fc810a
Patch 1494554: Update numeric properties to Unicode 4.1.
2006-05-27 08:36:52 +00:00
Neal Norwitz
d1b6cd7bfb
Fix Coverity warnings.
...
- Check the correct variable (str_obj, not str) for NULL
- sep_len was already verified it wasn't 0
2006-05-27 05:21:30 +00:00
Neal Norwitz
2f3136b8f0
Fix compiler warning (and whitespace) on Mac OS 10.4. (A lot of this code looked duplicated, I wonder if a utility function could help reduce the duplication here.)
2006-05-27 05:18:57 +00:00
Steve Holden
8040359724
Reinstate new-style object tests.
2006-05-27 00:51:52 +00:00
Tim Peters
7df5e7f4b2
Patch 1145039.
...
set_exc_info(), reset_exc_info(): By exploiting the
likely (who knows?) invariant that when an exception's
`type` is NULL, its `value` and `traceback` are also NULL,
save some cycles in heavily-executed code.
This is a "a kronar saved is a kronar earned" patch: the
speedup isn't reliably measurable, but it obviously does
reduce the operation count in the normal (no exception
raised) path through PyEval_EvalFrameEx().
The tim-exc_sanity branch tries to push this harder, but
is still blowing up (at least in part due to pre-existing
subtle bugs that appear to have no other visible
consequences!).
Not a bugfix candidate.
2006-05-26 23:14:37 +00:00
Andrew Dalke
7e0a62ea90
Added description of why splitlines doesn't use the prealloc strategy
2006-05-26 22:49:03 +00:00
Steve Holden
57ad060722
Blasted typos ...
2006-05-26 22:39:27 +00:00
Steve Holden
a4ebed8071
Update help text and documentaition.
2006-05-26 22:33:20 +00:00
Steve Holden
7db3d38d41
Add Richard Tew to developers
2006-05-26 22:17:54 +00:00
Tim Peters
19bfd4209d
Whitespace normalization.
2006-05-26 21:51:13 +00:00
Tim Peters
8d39dc11c2
Record Iceland sprint attendees.
2006-05-26 20:56:56 +00:00
Bob Ippolito
aa70a17e13
enable all of the struct tests, use ssize_t, fix some whitespace
2006-05-26 20:25:23 +00:00
Andrew Dalke
5132407868
Added limits to the replace code so it does not count all of the matching
...
patterns in a string, only the number needed by the max limit.
2006-05-26 20:25:22 +00:00
Georg Brandl
e4e023c4d3
Simplify calling.
2006-05-26 20:22:50 +00:00
Georg Brandl
a89dbec257
Patch #1492218 : document None being a constant.
2006-05-26 20:14:47 +00:00
Georg Brandl
7784f12d74
Replace Py_BuildValue("OO") by PyTuple_Pack.
2006-05-26 20:04:44 +00:00
Andrew M. Kuchling
07bbfc6a51
Comment typo
2006-05-26 19:51:10 +00:00
Fredrik Lundh
e6e43c867d
needforspeed: stringlib refactoring: use stringlib/find for string find
2006-05-26 19:48:07 +00:00
Thomas Heller
cc7570fd90
Write more docs.
2006-05-26 19:43:45 +00:00
Fredrik Lundh
c816281304
needforspeed: use a macro to fix slice indexes
2006-05-26 19:33:03 +00:00
Fredrik Lundh
ce4eccb0c4
needforspeed: stringlib refactoring: use stringlib/find for unicode
...
find
2006-05-26 19:29:05 +00:00
Fredrik Lundh
58b5e84d52
needforspeed: stringlib refactoring, continued. added count and
...
find helpers; updated unicodeobject to use stringlib_count
2006-05-26 19:24:53 +00:00
Fredrik Lundh
a26de2a80f
added rpartition method to UserString class
2006-05-26 19:23:21 +00:00
Georg Brandl
e001816dff
Exception isn't the root of all exception classes anymore.
2006-05-26 19:04:47 +00:00
Brett Cannon
04f031d202
Change C spacing to 4 spaces by default to match PEP 7 for new C files.
2006-05-26 19:04:47 +00:00
Andrew Dalke
c5da53ba78
substring split now uses /F's fast string matching algorithm.
...
(If compiled without FAST search support, changed the pre-memcmp test
to check the last character as well as the first. This gave a 25%
speedup for my test case.)
Rewrote the split algorithms so they stop when maxsplit gets to 0.
Previously they did a string match first then checked if the maxsplit
was reached. The new way prevents a needless string search.
2006-05-26 19:02:09 +00:00
Andrew M. Kuchling
afe6598732
Add rpartition() and path caching
2006-05-26 18:41:18 +00:00
Steve Holden
d05e546850
Revert tests to MAL's original round sizes to retiain comparability
...
from long ago and far away. Stop calling this pybench 1.4 because it
isn't. Remove the empty test, which was a bad idea.
2006-05-26 18:26:21 +00:00