Menu

Commit [r22575]  Maximize  Restore  History

The specific analysis API classes are now all singletons.

This change will reduce the amount of memory used, as these classes are initialised multiple times
throughout relax, especially in the test suite. The API objects are not used for local storage so
the multiple instance verses singleton design change will make no difference. The singleton design
pattern code has been added to the base class specific_analyses.api_base.Api_base so that all
classes inherit the __new__() method which implements the singleton.

bugman 2014-03-28

changed /trunk/specific_analyses/api_base.py
/trunk/specific_analyses/api_base.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.