|
Re: improve resource loading performance [message #423116 is a reply to message #423108] |
Tue, 23 September 2008 14:22 |
Ed Merks Messages: 33113 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>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.02789 seconds