summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-03-28 17:33:11 +0200
committerhut <hut@lavabit.com>2010-03-28 17:33:11 +0200
commit385642efacc1e6946ee7e8f4415fa345e70388ec (patch)
tree30ee964940db6c6d68a13fda8aecb3380174219f /doc
parentbb2a6b16fb80952f4e7228437f5edd19cf5586da (diff)
downloadranger-385642efacc1e6946ee7e8f4415fa345e70388ec.tar.gz
fsobject.directory: little optimization in sorting
1. no need to call path.basename.lower() since it's cached in
path.basename_lower.

2. no need to convert a bool to int for arithmetic operations

3. path.is_directory is faster than an isinstance() check
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions
directory.py?h=v1.5.0&id=5822dff7d91472bf2fc337c68f144e0ce1de09ae'>5822dff7 ^
9506fb8e ^

d88232a3 ^
fe179145 ^
9506fb8e ^
fe179145 ^
5822dff7 ^
fe179145 ^
9506fb8e ^
fe179145 ^

fae694a0 ^

fe179145 ^
fae694a0 ^

fe179145 ^
5822dff7 ^
9506fb8e ^
fae694a0 ^
9506fb8e ^
fae694a0 ^
fe179145 ^

fae694a0 ^
fe179145 ^
fae694a0 ^


4c05e43d ^

fae694a0 ^

fe179145 ^

fae694a0 ^




9506fb8e ^
fae694a0 ^
fae694a0 ^
1159f9ec ^



fe179145 ^
5822dff7 ^
9506fb8e ^
fae694a0 ^
fe179145 ^
fae694a0 ^
fe179145 ^

fae694a0 ^


fe179145 ^
fae694a0 ^
9506fb8e ^

f6f26231 ^
4c05e43d ^
f6f26231 ^







9506fb8e ^
fae694a0 ^

f6f26231 ^










4c05e43d ^

fae694a0 ^

fe179145 ^
5822dff7 ^

fe179145 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105