8000 Speedup Trac's git calls. · stroebjo/code.djangoproject.com@bf0849f · GitHub
[go: up one dir, main page]

Skip to content

Commit bf0849f

Browse files
committed
Speedup Trac's git calls.
1 parent 41dc2c1 commit bf0849f

File tree

1 file changed

+5
-0
lines changed
  • DjangoPlugin/tracdjangoplugin

1 file changed

+5
-0
lines changed

DjangoPlugin/tracdjangoplugin/wsgi.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import trac.web.main
22
application = trac.web.main.dispatch_request
33

4+
# Massive hack to make Trac fast, otherwise every git call tries to close ulimit -n (1e6) fds
5+
# Python 3 would perform better here, but we are still on 2.7 for Trac, so leak fds for now.
6+
from tracopt.versioncontrol.git import PyGIT
7+
PyGIT.close_fds = False
8+
49
from .djangoauth import DjangoAuth
510
application = DjangoAuth(application)

0 commit comments

Comments
 (0)
0