Discussion: rexml to slow
Afficher un message
Vieux 30/03/2008, 20h23   #6
Bu Mihai
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: rexml to slow

Robert Klemme wrote:
> On 29.03.2008 08:46, Bu Mihai wrote:
>> I have an xml file and sometimes i call the find_first_recursive method;
>> when my xml file is small its working fine but when i have ~900 lines im
>> waiting ~15 seconds to return me the wanted node and i want something
>> faster; How can i obtain a better time?

>
> What's the find criteria you use? Maybe you can use XPath. 900 lines
> does not really sound large so I suspect there might be an algorithmic
> or design error.
>
> Kind regards
>
> robert



this is the criteria:

node=rexml_element.find_first_recursive {|node|
node.attributes["again"]=="yes"}
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
 
Page generated in 0,04760 seconds with 9 queries