ncdingari / r-orange

Automatically exported from code.google.com/p/r-orange
Other
0 stars 0 forks source link

widget registry takes a long time #500

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It takes a long time to register the widgets.  I have the feeling that we are 
doing the same work over and over.  Perhaps the registry could be created once 
and then when settings change we could update them instead of reading in the 
entire thing again.  Also the registry is unlikely to change too much for a 
regular user.  Perhaps updating the registry could be deligated to a function 
that is called when the user updates a package or when the developer clicks a 
button but asside from that we can just reuse the saved widget registry.  I 
think this is pickleable anyway...

Original issue reported on code.google.com by kylecovi...@gmail.com on 2 Mar 2011 at 3:37

GoogleCodeExporter commented 8 years ago
changed orngRegistry so that it first looks for a cPickled file in the settings 
dir.  If this is found then that file is loaded for the registry.  The package 
manager simply needs to pass force = True to the registry parameter, also if 
the user clicks to reload the widget then this is equivalent to force = True.  
Doing this will set the registry to be the new file.

Doing this dramatically improves the speed of loading of Red-R...  Perhaps 
there are other places where similar settings can be saved...

Please comment...

Original comment by kylecovi...@gmail.com on 2 Mar 2011 at 5:35

GoogleCodeExporter commented 8 years ago
changed to a cashed system, actually orange was made to do this but we 
commented out, any bugs please report

Original comment by kylecovi...@gmail.com on 5 Mar 2011 at 7:39

GoogleCodeExporter commented 8 years ago
no bugs reported closing issue

Original comment by kylecovi...@gmail.com on 3 May 2011 at 3:58