Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork940
Commit454feda

James E. Blair
Only gc.collect() under windows
Under Windows, tempfile objects are holding references to open filesuntil the garbage collector closes them and frees them. Explicitcalls to gc.collect() were added to the finalizer for the Repo classto force them to be closed synchronously. However, this is expensive,especially in large, long-running programs. As a temporary measureto alleviate the performance regression on other platforms, onlyperform these calls when running under Windows.Fixes#5531 parentf237620 commit454feda
1 file changed
+10
-2
lines changedLines changed: 10 additions & 2 deletions
Original 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
Comments
(0)