Hi, We have an application which reads 1000''s of locations from the xml file and will display all those locations in the google map. We have implemented the following approach for this... 1. Read all the data from xml files at the time of page load and pass it to the client side. 2. this data will be used for all the furthur operations on the google map. The above approach is working fine if there are less no of locations. But if there are more lcations, it is taking huge amount of time to parse the data from xml files. Is there any better approach to do it. Please help me. Thanks in Advance -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> > The above approach is working fine if there are less no of locations. > But if there are more lcations, it is taking huge amount of time to > parse the data from xml files. > > Is there any better approach to do it. Please help me.First of all, profile your code. If the bottleneck is the xml parser, then what xml parser are you using? If you haven''t already, XMLParser (http://www.yoshidam.net/Ruby.html) might be worth a look. It''s some ruby interfaces to expat so should be pretty speedy. Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---