Speed issues

Stefan Schwarzer s.schwarzer at ndh.net
Thu Dec 30 12:17:56 EST 1999


Hi Gerrit,

Gerrit Holl schrieb:
> is an assigment slower than appending to a list?
> [...]
> What is faster? What do you prefer?

In addition to that what others have said: What about (not tested)

def f( s ):
    o = map( lambda c: chr( ord(c)/2 ), s )
    return string.join( o, '' )

How will this compare?

Stefan



More information about the Python-list mailing list