RAP Browser Performance [message #661124] |
Wed, 23 March 2011 05:48  |
Eclipse User |
|
|
|
Hello,
RAP application runs fastest on Chrome and next is Firefox (slight performance different noticeable).
i-explorer is the worst and it produces the following error 90% of the time.
Stop running this script ?
A script on this page is causing your web browser to run slowly. If it continues to run, your computer might become unresponsive.
Has anyone tested RAP on these browsers for heavy UI ?
for now RAP works fine with both Chrome and Firefox.
We're using RAP 1.4 M6.
Your input is highly appreciated.
Regards,
Sudesh
|
|
|
|
|
|
|
|
|
|
|
|
Re: RAP Browser Performance [message #661332 is a reply to message #661271] |
Thu, 24 March 2011 06:00   |
Eclipse User |
|
|
|
Hello Austin,
I'd be interested to look at a snippet where progress dialog can be utilized when editor loading in progress.
we tried with following, but it only worked in RCP, not in RAP.
following method createPartControl, is the place where we wanted to notify users, that background operation is in progress using IProgressService.
@Override
public void createPartControl(final Composite parent) {
parent.setBackgroundMode(SWT.INHERIT_DEFAULT);
final FormLayout layout = new FormLayout();
layout.marginWidth = 0;
layout.marginHeight = 0;
layout.marginLeft = 5;
layout.marginRight = 5;
layout.marginTop = 5;
layout.marginBottom = 5;
parent.setLayout(layout);
CustomDecoratorPropertyProvider.getInstance()
.setCompositeBackgroundGradient(parent);
/*
* IProgressService will notify the user that the loading of the
* workbench element, i.e EditorPart is already in progress using
* ProgressMonitorDialog
*/
try {
PlatformUI
.getWorkbench()
.getProgressService()
.runInUI(PlatformUI.getWorkbench().getProgressService(),
new IRunnableWithProgress() {
@Override
public void run(final IProgressMonitor monitor) {
monitor.beginTask(
"Opening Editor in progress, please wait..",
IProgressMonitor.UNKNOWN);
final long eventOne = System
.currentTimeMillis();
DatasetCompositeFactory
.getInstance()
.initComposite(
parent,
_userInterfaceRender
.getCompositePanelModel(),
_datasetControllerArray);
final long diff = eventOne
- System.currentTimeMillis();
System.out.println("diff - " + diff);
monitor.done();
}
}, null);
} catch (final InvocationTargetException e) {
e.printStackTrace();
} catch (final InterruptedException e) {
e.printStackTrace();
}
}
if you used different approach to notify users of the progress while loading the editor, could you share that with us ?
Thanks,
Sudesh Bulathsinhala
|
|
|
|
Re: RAP Browser Performance [message #727750 is a reply to message #661539] |
Wed, 21 September 2011 18:49  |
Eclipse User |
|
|
|
Hi
I am having the same issue.
My RAP works great in Firefox but in IE the performance is pathetic.
I am able to create 150 records in the table viewer in Firefox without any issue but when i create the same in IE it becomes unresponsive. I am not able to create more than 50 records in the IE.
The scripting language (java script) is same for both the browser but there are some things which are different like i remember from my past experience <form></form> is mandatory for creating the form in Firefox while it is not mandatory in IE. I do not know whether it is still valid. Secondly, scripting language does not work exactly same in all the browsers. So does something needs to be added to make it work in IE exactly same as Firefox .
I am using IE 8.0.(128 bit) and Firefox 3.6.22.
Any pointers are highly appreciated.
|
|
|
Powered by
FUDForum. Page generated in 0.27965 seconds