diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 1998-09-02 21:53:16 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 1998-09-02 21:53:16 (GMT) |
commit | b85c8479eb0dd25968eceabf599c0c4616a3c59a (patch) | |
tree | b3786c069d4c17a82728ae034d7bea07caa17393 /Python/bltinmodule.c | |
parent | f6ae743cb53a2953c7fb063963ec48029206c8b0 (diff) | |
download | cpython-b85c8479eb0dd25968eceabf599c0c4616a3c59a.zip cpython-b85c8479eb0dd25968eceabf599c0c4616a3c59a.tar.gz cpython-b85c8479eb0dd25968eceabf599c0c4616a3c59a.tar.bz2 |
Easy optimizations of urlparse for the common case of parsing an http URL.
1. use dict.get instead of try/except KeyError
2. if the url scheme is 'http' then avoid the series of
'if var in [someseq]:'. instead, inline all of the code.
3. find = string.find
Diffstat (limited to 'Python/bltinmodule.c')
0 files changed, 0 insertions, 0 deletions