<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML con formato previo Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Texto de globo Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.TextodegloboCar
{mso-style-name:"Texto de globo Car";
mso-style-priority:99;
mso-style-link:"Texto de globo";
font-family:"Tahoma","sans-serif";}
span.EstiloCorreo19
{mso-style-type:personal-compose;
color:black;}
span.HTMLconformatoprevioCar
{mso-style-name:"HTML con formato previo Car";
mso-style-priority:99;
mso-style-link:"HTML con formato previo";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ES link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:black'>Hi,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:black'>I have a big problem. My
resources list is very large (around 1000). When I get a value with
getStringValue, it is very much slow (around 15 millesec. per resource ). Total
is 15 seconds. It is my code:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:black'><o:p> </o:p></span></p>
<pre style='line-height:15.0pt'><span lang=EN-US style='color:black'>for (int i = 0; i < list.size(); i++) {<o:p></o:p></span></pre>
<p class=MsoNormal><span lang=EN-US style='color:black'>…<o:p></o:p></span></p>
<pre style='line-height:15.0pt'><span lang=EN-US style='color:black'>CmsFile file = cmsObj.readFile(resource); <br>
CmsXmlContent content = CmsXmlContentFactory.unmarshal(cmsObj, file); <br>
String name = content.getStringValue(cmsObj,"Name[1]", locale); <o:p></o:p></span></pre>
<p class=MsoNormal style='line-height:15.0pt'><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New";color:black'>String album =
content.getStringValue(cmsObj,"Album[1]", locale); <o:p></o:p></span></p>
<p class=MsoNormal style='line-height:15.0pt'><span lang=EN-US
style='font-size:10.0pt;font-family:"Courier New";color:black'>String group =
content.getStringValue(cmsObj,"Group[1]", locale)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:black'>…<o:p></o:p></span></p>
<pre style='line-height:15.0pt'><span style='color:black'>}<o:p></o:p></span></pre>
<p class=MsoNormal><span lang=EN-US style='color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:black'>Is there another way?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:black'>Thanks.<o:p></o:p></span></p>
</div>
</body>
</html>