Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

rpcserver: insert gc.collect() in updater

This dropped idle memory usage of the server process with a test
sample of repos from ~30 MB to 20.

Changeset ab5013fcd3c6

Parent 9ac445927e9e

by Adrian Buehlmann

Changes to one file · Browse files at ab5013fcd3c6 Showing diff from parent 9ac445927e9e Diff from another changeset...

 
1
 
2
3
4
 
104
105
106
 
107
108
109
 
121
122
123
 
124
125
126
 
1
2
3
4
5
 
105
106
107
108
109
110
111
 
123
124
125
126
127
128
129
@@ -1,4 +1,5 @@
 import os +import gc  import win32api  import win32con   @@ -104,6 +105,7 @@
  shlib.shell_notify(list(notifypaths))    def dispatch(req, cmd, args): + print "dispatch(%s)" % req   if cmd == 'update':   update(args)   elif cmd == 'remove': @@ -121,6 +123,7 @@
  logmsg('Updater thread terminating')   return   dispatch(req, cmd, args) + gc.collect()    Updater().start()