Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » improve resource loading performance
improve resource loading performance [message #423108] Tue, 23 September 2008 13:38 Go to next message
gouin is currently offline gouinFriend
Messages: 2
Registered: July 2009
Junior Member
Hi,

I need to improve the loading performance for a resource.

For the sample I use an XML-serialised resource which is a 470KB file.

With the loadOption XMLResource.OPTION_DEFER_IDREF_RESOLUTION I gained ~35%

That's fine but not enough, indeed it takes 2.5s to load the resource from
the file.
whereas with a simple xpp parser it takes ~260ms, indeed it does not
create all the emf references.

I just need to obtain the resource for consumption (read-only), not for
authoring (read/write).

What can I do ?

Thanks in advance,

regards.

Guillaume.
Re: improve resource loading performance [message #423116 is a reply to message #423108] Tue, 23 September 2008 14:22 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31157
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090601030502060402000207
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Guillaume,

Comments below.

gouin wrote:
> Hi,
>
> I need to improve the loading performance for a resource.
>
> For the sample I use an XML-serialised resource which is a 470KB file.
>
> With the loadOption XMLResource.OPTION_DEFER_IDREF_RESOLUTION I gained
> ~35%
Another approach would be to use ResourceImpl.setIntrinsicIDToEObjectMap
if you have intrinsic IDs.
>
> That's fine but not enough, indeed it takes 2.5s to load the resource
> from the file. whereas with a simple xpp parser it takes ~260ms,
> indeed it does not create all the emf references.
>
> I just need to obtain the resource for consumption (read-only), not
> for authoring (read/write).
>
> What can I do ?
You've looked at this?

EMF Performance Tips
< http://www.eclipse.org/modeling/emf/docs/performance/EMFPerf ormanceTips.html>

>
> Thanks in advance,
>
> regards.
>
> Guillaume.
>

--------------090601030502060402000207
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Guillaume,<br>
<br>
Comments below.<br>
<br>
gouin wrote:
<blockquote
cite="mid:75c250ba2de1a6f526dd8e686ae0edb3$1@www.eclipse.org"
type="cite">Hi,
<br>
<br>
I need to improve the loading performance for a resource.
<br>
<br>
For the sample I use an XML-serialised resource which is a 470KB file.
<br>
<br>
With the loadOption XMLResource.OPTION_DEFER_IDREF_RESOLUTION I gained
~35%
<br>
</blockquote>
Another approach would be to use
ResourceImpl.setIntrinsicIDToEObjectMap if you have intrinsic IDs.<br>
<blockquote
cite="mid:75c250ba2de1a6f526dd8e686ae0edb3$1@www.eclipse.org"
type="cite"><br>
That's fine but not enough, indeed it takes 2.5s to load the resource
from the file. whereas with a simple xpp parser it takes ~260ms, indeed
it does not create all the emf references.
<br>
<br>
I just need to obtain the resource for consumption (read-only), not for
authoring (read/write).
<br>
Re: improve resource loading performance [message #423166 is a reply to message #423116] Wed, 24 September 2008 09:36 Go to previous message
gouin is currently offline gouinFriend
Messages: 2
Registered: July 2009
Junior Member
Thanks Ed for your prompt response,

Yes I looked at EMF Performance Tips

< http://www.eclipse.org/modeling/emf/docs/performance/EMFPerf ormanceTips.html>

That's where I found the OPTION_DEFER_IDREF_RESOLUTION option.

With all the optimisations I have done, I always have the delay specified
(2,5s) which is unacceptable in my context.

Is there any hope to improve that by a factor near 10 the load of a
resource?

The resource contains ~2300 elements (of 10 different types) with ~11400
attributes.
I've got ~26 million "eIsSet" and ~17 million "eGet" invocations with an
average time of 0/1┬Ás each.

Does the problem come from the size of the resource (minimal in my sample
: 470KB) or from its complexity?

Thanks in advance,

Guillaume.
Previous Topic:Editing a generic attribute in the property sheet pane
Next Topic:Problems with read-only resources in an editing domain
Goto Forum:
  


Current Time: Thu May 28 19:13:10 GMT 2020

Powered by FUDForum. Page generated in 0.02106 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top