Hi, What is "best" depends on your exact situation. This includes the XML you receive, the specific values you need to extract, how much of the XML needs to be extracted, how much of the overall program the XML handling takes, the hardware the program runs on, and the development resources you have to use improving the XML handling.
Since you already have two implementations (Decoder and Manual), start by making sure they both work (by testing them) and then use benchmarks with -benchmem to find out which one you prefer. If you don't know Go's benchmarking tools, checkout https://pocketgophers.com/concurrency-slower/ for an example I wrote that shows how they can be used to check for performance improvements. On Monday, June 19, 2017 at 8:07:19 PM UTC+2, Abhijit Desai wrote: > > I need to integrateXML REST Api where dont need all the nodes / values > return by thirdparty REST Api > > There are main repeated 1500 nodes with lot of internal nodes > > Please let me know which I suppose to use performance wise > > 1. Xml Decoder > 2. Manual by using Token() > 3. XPath to get values > > Decoder and Manual both are taking 600 ms approx > > Please let me know best possible way to achieve this to use less Memory > with best performance > > Please help > > Rgds, > > Abhi > > > > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
