Menu

Commit [r23375]  Maximize  Restore  History

Merged revisions 23373-23374 via svnmerge from

svn+ssh://bugman@.../svn/relax/trunk

........
r23373 | bugman | 2014-05-23 11:25:34 +0200 (Fri, 23 May 2014) | 7 lines

Speed up for the version module when using a repository copy of the code.

The repository revision and URL and now stored as module variables, so that the 'svn info' and
'git svn info' commands are only run twice, once for the revision() function and once for the url()
function.
........
r23374 | bugman | 2014-05-23 12:11:36 +0200 (Fri, 23 May 2014) | 15 lines

Large speed up for the relax start up times for svn and git-svn copies of the relax repository.

The 'svn info' and 'git svn info' commands are now only executed once when the version module is
first imported. The revision() and url() functions have been merged into the repo_info() function
and this is called when the module is imported. This repo_info() function stores the repository
revision and URL as the version.repo_revision and version.repo_url module variables. It also
catches if these variables are already set, so that multiple imports of the module do not cause the
repository information to be looked up each time.

Previously the revision() and url() functions where called every time a relax state or result file
was created, hence for repository copies the 'svn info' or 'git svn info' commands were being called
each time. The functions were also called for each interpreter object instantiated, and for each
import of the version module.
........

bugman 2014-05-23

changed /branches/frame_order_cleanup
changed /branches/frame_order_cleanup/data_store/__init__.py
changed /branches/frame_order_cleanup/info.py
changed /branches/frame_order_cleanup/version.py
/branches/frame_order_cleanup/data_store/__init__.py Diff Switch to side-by-side view
Loading...
/branches/frame_order_cleanup/info.py Diff Switch to side-by-side view
Loading...
/branches/frame_order_cleanup/version.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.