-
-
Notifications
You must be signed in to change notification settings - Fork 960
Commit 454feda
author
committedJames E. Blair
Only gc.collect() under windows
Under Windows, tempfile objects are holding references to open files
until the garbage collector closes them and frees them. Explicit
calls to gc.collect() were added to the finalizer for the Repo class
to force them to be closed synchronously. However, this is expensive,
especially in large, long-running programs. As a temporary measure
to alleviate the performance regression on other platforms, only
perform these calls when running under Windows.
Fixes #553 1 parent f237620 commit 454feda
1 file changed
+10
-2
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
209 | 209 |
| |
210 | 210 |
| |
211 | 211 |
| |
212 | - | ||
212 | + | ||
213 | + | ||
214 | + | ||
215 | + | ||
216 | + | ||
217 | + | ||
218 | + | ||
219 | + | ||
213 | 220 |
| |
214 | - | ||
221 | + | ||
222 | + | ||
215 | 223 |
| |
216 | 224 |
| |
217 | 225 |
| |
|
0 commit comments