portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Sean Taylor (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Created: (JS2-886) Improve 2.1.x Jetspeed Preferences Creation Algorithm
Date Wed, 04 Jun 2008 16:39:44 GMT
Improve 2.1.x Jetspeed Preferences Creation Algorithm
-----------------------------------------------------

                 Key: JS2-886
                 URL: https://issues.apache.org/jira/browse/JS2-886
             Project: Jetspeed 2
          Issue Type: Improvement
            Reporter: David Sean Taylor


Improve 2.1.x Jetspeed Preferences Creation Algorithm by first retrieving preferences on creation,
instead of trying to create them, failing, and handling the exception, then retrieving
This algorithm (statistics provided by Ate Douma) improves getConnection calls to the DataSource
significantly:

Before this setup, I counted 88 unique stacktrace calls invoked 142 times in total (e.g. 142
getConnection() calls.

Then I changed the org.apache.jetspeed.prefs.impl.PreferencesImpl constructor to first try
to *get* a Node before
creating one (which in practice mostly will fail):

Running again my single login request showed a rather nice improvement:
down to 74 stack trace call and "only" 104 getConnection() calls (so, 142 -> 104).

 initial test               : 142 getConnection() calls = 100.0%
+ Preferences creation change: 104 getConnection() calls =  26.7% -


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message