This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author donut
Recipients
Date 2004-06-21.22:39:17
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
gcc will only inline functions if they are defined
before where they are used.  So this patch just moves
Encode and Decode up to the top of the file.

This can provide a couple percent improvement in speed.
(try
timeit.py -s 'import md5; m=md5.new(); d="a"*64'
'm.update(d);m.digest()'
and
timeit.py -s 'import md5; m=md5.new(); d="a"*0x100000'
'm.update(d)'
)

Decode is only used once, so allowing it to inline
actually reduces the code size, Encode is used twice
but its a pretty small function so it doesn't change
the size much either way..
History
Date User Action Args
2007-08-23 15:38:13adminlinkissue977074 messages
2007-08-23 15:38:13admincreate