Opened 6 years ago

Closed 6 years ago

#6094 closed enhancement (fixed)

Use demandimport - automatic demandloading of modules

Reported by: Dicson Owned by:
Priority: lowest Milestone: 0.15
Component: Core Version:
Severity: enhancement Keywords:
Cc: Blocked By:
Blocking: OS: All

Description

I tried to use demandimport(http://hg.intevation.org/mercurial/crew/file/tip/mercurial/demandimport.py) in Gajim. Start time and memory usage decreased:

test@dicson:~$ gajimt
2.34304189682
len(sys.modules) = 804
test@dicson:~$ gajimt
1.74128389359
len(sys.modules) = 500

Memory usage was reduced from 34.4 MB to 28.5 MB. May be worth considering the possibility of using this module.

Attachments (1)

gajim.vc.diff (6.2 KB) - added by Dicson 6 years ago.

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by Dicson

comment:1 Changed 6 years ago by Denis Fomin <fominde@…>

  • Milestone set to 0.15
  • Resolution set to fixed
  • Status changed from new to closed

(In [bcd7ab1924b9]) Use demandimport - automatic demandloading of modules. Fixes #6094

Note: See TracTickets for help on using tickets.