Commit 7aa071d
committed
fix: perf improvement for session clean() and warning added
Replaced a subtraction and comparison operation an inner loop with a
comparison against a threhold. This mimics the session_rdbms code that
uses a constant value for the timestamp threshold.
Also added a log warning messge if clean() takes more than 3 seconds.
It took me a while to track down the cause of an increasing delay in
CGI response. Turns out it was cleaning the dbm otks database with
1.5k entries.1 parent 292dabf commit 7aa071d
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
211 | | - | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
| |||
0 commit comments