Opened 6 years ago

Closed 6 years ago

#5920 closed defect (fixed)

[PATCH] use manifest files in plugin system

Reported by: Dicson Owned by: vardo
Priority: normal Milestone: 0.15
Component: plugin system Version: hg
Severity: normal Keywords:
Cc: Blocked By:
Blocking: OS: All

Description (last modified by Dicson)

I tested the speed of the start Gajim when added to the file plaginmanager.py this code:

        Registered handlers of GUI extension points.
        '''
        a = time.time()

        for path in gajim.PLUGINS_DIRS:
            self.add_plugins(PluginManager.scan_dir_for_plugins(path))
        b = time.time() - a
        print b
        #log.debug('plugins: %s'%(self.plugins))

        self._activate_all_plugins_from_global_config()

        #log.debug('active: %s'%(self.active_plugins))

Befor patch:

test@dicson:~$ '/home/test/gajim/launch.sh' 
0.106698989868
test@dicson:~$ '/home/test/gajim/launch.sh' 
0.105970144272
test@dicson:~$ '/home/test/gajim/launch.sh' 
0.1048579216
test@dicson:~$ '/home/test/gajim/launch.sh' 
0.105332136154
test@dicson:~$ '/home/test/gajim/launch.sh' 

After:

test@dicson:~$ '/home/test/gajim/launch.sh' 
0.104485034943
test@dicson:~$ '/home/test/gajim/launch.sh' 
0.106462001801
test@dicson:~$ '/home/test/gajim/launch.sh' 
0.105379104614
test@dicson:~$ '/home/test/gajim/launch.sh' 
0.112509012222
test@dicson:~$ '/home/test/gajim/launch.sh' 
0.105584859848
test@dicson:~$ '/home/test/gajim/launch.sh' 
0.124591112137
test@dicson:~$ '/home/test/gajim/launch.sh' 
0.105065107346
test@dicson:~$ '/home/test/gajim/launch.sh' 
0.104741811752

I have 15 plug-ins

Attachments (2)

gajim.diff (11.0 KB) - added by Dicson 6 years ago.
patch.diff (10.1 KB) - added by Dicson 6 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 6 years ago by Dicson

  • Description modified (diff)

Changed 6 years ago by Dicson

Changed 6 years ago by Dicson

comment:2 Changed 6 years ago by Yann Leboulanger <asterix@…>

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

(In [1392e6406655]) [Dicson] use manifest.ini files in plugins to have a separate file for plugin's information. Fixes #5920

Note: See TracTickets for help on using tickets.