Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: 57beea5ca5cb45c71f7dd29d2d14f4a45bd71831
https://github.com/openSUSE/open-build-service/commit/57beea5ca5cb45c71f7dd2...
Author: Stephan Kulow
Date: 2012-02-15 (Wed, 15 Feb 2012)
Changed paths:
M src/activexml/node.rb
M src/webui/app/models/package.rb
M src/webui/app/models/project_status.rb
Log Message:
-----------
[webui] write a custom to_hash function in activexml to offer
faster access to subtrees
Commit: 05d3553af76628ebacda0de31dc87b685f10c0c7
https://github.com/openSUSE/open-build-service/commit/05d3553af76628ebacda0d...
Author: Stephan Kulow
Date: 2012-02-15 (Wed, 15 Feb 2012)
Changed paths:
M src/activexml/node.rb
Log Message:
-----------
[webui] overwrite some functions in Hash that make it easier to port
activexml code
Commit: 6e8094e3eedd7bb6a38555d70f662b4fb5807aac
https://github.com/openSUSE/open-build-service/commit/6e8094e3eedd7bb6a38555...
Author: Stephan Kulow
Date: 2012-02-15 (Wed, 15 Feb 2012)
Changed paths:
M src/webui/app/controllers/project_controller.rb
M src/webui/app/models/project_status.rb
Log Message:
-----------
[webui] use a hash instead of the full activexml in project status
As it's a very complex algorithm working on the big XML sent from the API
this really pays out. The initial conversion from XML to HASH takes 6 seconds
(it's 3.8MB of XML and it's ruby :), but the algorithm not using XML but native
ruby leads to performance improvement.
benchmark: querying factory status for 4 users of various levels of factory involvement.
before: user - 109.34s
after: user - 34.62s
speedup (with very little code changes): 3x
Compare: https://github.com/openSUSE/open-build-service/compare/250d321...6e8094e