... readability and maintainability.
18. 7. Summary
This chapter has illustrated several important aspects of performance tuning
in Python, and performance tuning in general.
* If you need ... (not source) and (not source.isalpha()):
return "0000"
Chapter 18. Performance Tuning
Performance tuning is a many-splendored thing. Just because Python is an
int...
... function also got translated into XML.
SOAPProxy introspects each argument to determine its datatype (in this case
it's a string). The argument datatype goes into the xsi:type attribute, ... and route requests between several unrelated services. It's like dividing
Python modules into packages.
3 You're creating the SOAPProxy with the service URL and the service
names...
... CA
www.sybex.com
Graphical Performance Tuning Tools 47
Performance Manager, Top Sessions, and Trace Manager are particularly
useful for performance tuning.
Performance Manager
Performance Manager is a GUI performance ... CA
www.sybex.com
48 Chapter 2
Sources of Tuning Information
FIGURE 2.4 Performance Manager output
One unique feature of Performance Manager is that t...
...
Chapter 13. Unit Testing
13.1. Introduction to Roman numerals
In previous chapters, you “dived in” by immediately looking at code and
trying to understand it as quickly as possible. Now ... Study: Roman Numerals”, but now let's step back and consider what
it would take to expand that into a two-way utility.
The rules for Roman numerals lead to a number of interesting observat...
... (4), or an optional V followed by 0 to 3 optional I
characters.
2 Having encoded all that logic into a regular expression, the code to
check for invalid Roman numerals becomes trivial. If re.search
... improved the regular expression performance by over 60%,
and improved the overall performance of the entire unit test by over 10%.
2 More important than any performance boost is the fact that ...
fillLookupTables()
So how fast is it?
Example 15 .18. Output of romantest9.py against roman9.py
Ran 13 tests in 0.791s
OK
Remember, the best performance you ever got in...
...
'vacancies'
1 This regular expression turns vacancy into vacancies and agency into
agencies, which is what you wanted. Note that it would also turn boy into
boies, but that will never happen in the ...
and quickly descends into more advanced uses.
English is a schizophrenic language that borrows from a lot of other
languages, and the rules for making singular noun...
... Chapter 1. Installing Python
Welcome to Python. Let's dive in. In this chapter, you'll install the version of
Python that's right for you. ...
that scripts are running under the latest version of Python, and be sure to
type python2.3 to get into the interactive shell.
1.6. Python on Debian GNU/Linux
If you are lucky enough to be running ... calculator!
Launch the Pyt...