Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [XPAND] clear Xtend cached objects
[XPAND] clear Xtend cached objects [message #481607] Fri, 21 August 2009 18:42 Go to next message
ekkehard gentz is currently offline ekkehard gentzFriend
Messages: 118
Registered: July 2009
Location: rosenheim, Germany, bavar...
Senior Member

This is a multi-part message in MIME format.
--------------030704080300020508000800
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

if my whole workflow is running, then I need much memory -
in the different parts of my workflow I'm using Xtends 'cached', which
speeds things up

now the question is:
can I explicitely clear the Xtend caches ?
at some nodes of my workflow-tree this would be a good idea and help to
free memory

any idea ?
per ex. using a Java extension

thx for any hints
--

ekke (ekkehard gentz)
independent software-architect
senior erp-consultant
eclipse | osgi | equinox | mdsd | oaw | emf | uml
max-josefs-platz 30, D-83022 rosenheim, germany
mailto:ekke@ekkes-corner.org
homepage (de): http://gentz-software.de
blog (en): http://ekkes-corner.org
twitter: @ekkescorner
skype: ekkes-corner
Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490


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

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
if my whole workflow is running, then I need much memory -<br>
in the different parts of my workflow I'm using Xtends 'cached', which
speeds things up<br>
<br>
now the question is:<br>
can I explicitely clear the Xtend caches ?<br>
at some nodes of my workflow-tree this would be a good idea and help to
free memory<br>
<br>
any idea ?<br>
per ex. using a Java extension <br>
<br>
thx for any hints<br>
<div class="moz-signature">-- <br>
<p style="margin-bottom: 0cm;"> <font ,="" color="#808080"
face="Verdana, sans-serif"> <font size="4">ekke (ekkehard gentz)<br>
</font> <font size="3"> independent software-architect<br>
senior erp-consultant<br>
</font> <font size="2">eclipse | osgi | equinox | mdsd | oaw | emf |
uml<br>
max-josefs-platz 30, D-83022 rosenheim, germany<br>
<a class="moz-txt-link-freetext" href="mailto:ekke@ekkes-corner.org">mailto:ekke@ekkes-corner.org</a><br>
homepage (de): <a class="moz-txt-link-freetext" href="http://gentz-software.de">http://gentz-software.de</a><br>
blog (en): <a class="moz-txt-link-freetext" href="http://ekkes-corner.org">http://ekkes-corner.org</a><br>
twitter: @ekkescorner<br>
skype: ekkes-corner<br>
</font> <font size="1"> Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID:
DE189929490<br>
</font> </font> </p>
</div>
</body>
</html>

--------------030704080300020508000800--


ekke
independent software architect

blog: http://ekkes-corner.org
twitter: @ekkescorner
Re: [XPAND] clear Xtend cached objects [message #481730 is a reply to message #481607] Mon, 24 August 2009 06:41 Go to previous messageGo to next message
Knut Wannheden is currently offline Knut WannhedenFriend
Messages: 298
Registered: July 2009
Senior Member
Hi Ekke,

ekke wrote:
> if my whole workflow is running, then I need much memory -
> in the different parts of my workflow I'm using Xtends 'cached', which
> speeds things up
>
> now the question is:
> can I explicitely clear the Xtend caches ?
> at some nodes of my workflow-tree this would be a good idea and help to
> free memory
>

The cache is only valid (and thus kept) within the same invocation of Xpand or
Xtend. So the cache should automatically be made available for garbage
collection inbetween the different parts of your workflow.

Hope that helps,

--knut
Re: [XPAND] clear Xtend cached objects [message #482023 is a reply to message #481730] Tue, 25 August 2009 07:35 Go to previous message
ekkehard gentz is currently offline ekkehard gentzFriend
Messages: 118
Registered: July 2009
Location: rosenheim, Germany, bavar...
Senior Member

Knut Wannheden schrieb:
> Hi Ekke,
>
> ekke wrote:
>> if my whole workflow is running, then I need much memory -
>> in the different parts of my workflow I'm using Xtends 'cached',
>> which speeds things up
>>
>> now the question is:
>> can I explicitely clear the Xtend caches ?
>> at some nodes of my workflow-tree this would be a good idea and help
>> to free memory
>>
>
> The cache is only valid (and thus kept) within the same invocation of
> Xpand or Xtend. So the cache should automatically be made available
> for garbage collection inbetween the different parts of your workflow.
>
> Hope that helps,
>
> --knut
thanks, knut,

good to know that the cache is only bound to the active (Xpand or Xtend)
workflow component,
so only the models stored in slots and workflow properties are available
thru the whole workflow.

ekke


ekke
independent software architect

blog: http://ekkes-corner.org
twitter: @ekkescorner
Previous Topic:Galileo performance twice as slow?
Next Topic:[acceleo] Property file
Goto Forum:
  


Current Time: Fri Mar 29 10:17:54 GMT 2024

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

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

Back to the top