]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commit
Some more pythonic optimizations
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 5 Jan 2019 15:09:32 +0000 (00:09 +0900)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 5 Jan 2019 15:09:32 +0000 (00:09 +0900)
commit57e1c0c3a255125165572832833a49cee0c2c5d1
treec075020f4cee428fb896550638bf1a4da600ce02
parent0edb3c555c428adadef520415aa83fa2e23f4e66
Some more pythonic optimizations

- slicing is faster that str methods
- splitting is faster than regexps
- in operator is faster han has_key
wwwbin/ftp-freshness.py
This page took 0.04575 seconds and 4 git commands to generate.