Very poor JavaHelp performance

Subject: Very poor JavaHelp performance
From: Andrew -dot- Cheyne -at- vicorp -dot- com
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Tue, 6 Apr 2004 08:27:36 -0600


I'm collaborating with a programmer to incorporate a simple JavaHelp
helpset in a Java application. There is no context-sensitive help
involved, but several of the html pages contain graphics. When I run the
help viewer from the command line, the topics and the results of searches
display acceptably quickly. However, when we launch the help from the
application's menu bar response times become considerably longer.

Here are the details from my colleague:

===

I've built JavaHelp into my swing application by adding the following menu
code:

<code_snippet>

String helpHS = "file://C:/tmp/Studio_2.1/Studio_2.1.hs";
ClassLoader cl = ClassLoader.getSystemClassLoader();
try {
URL helpsetURL = new URL(helpHS);

HelpSet hs = new HelpSet(cl, helpsetURL);

// Create a HelpBroker object:
HelpBroker hb = hs.createHelpBroker();

hb.initPresentation();

JMenuItem helpContents = new JMenuItem("Help Contents");
helpContents.addActionListener(new CSH.DisplayHelpFromSource( hb ));
helpMenu.add(helpContents);
} catch (Exception ee) {
// Say what the exception really is
StudioState.getLogger().error("Exception while finding helpset" +
ee.getMessage());
}

</code_snippet>

and I seem to have a serious problem in the time that is taken over
loading pages from my helpset. I have a high spec machine, and neither
memory or CPU seem to twitch when I click on a page in the tree, however
it still takes around 20-30 seconds to load a simple page. I have tried
using one of the demo application helpset, but the same problem occurs. I
have also tried using the hsviewer application to view my helpset which
performs perfectly As you can see, I've also tried pre loading the help
broker with no effect.

Has anybody seen a problem like this before or know how to fix it?

===

Thanks in advance
/a

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ROBOHELP X5 - ALL NEW VERSION!!

Have you tried the latest in Help Authoring from RoboHelp?
Try ROBOHELP X5 for Free - Now with Word 2003 support, Content
Management, Multi-Author support, PDF and XML support and much more!

Download a free trial today: http://www.ehelp.com/techwr-l4

---
You are currently subscribed to techwr-l as:
archiver -at- techwr-l -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit
http://www.raycomm.com/techwhirl/ for more resources and info.



Previous by Author: Re: Need some ideas?
Next by Author: Can't be a Profit Center? How about Knowledge Center?
Previous by Thread: RE: What would *you* do...
Next by Thread: Re: Very poor JavaHelp performance


What this post helpful? Share it with friends and colleagues:


Sponsored Ads