json - Best and quickest way to parse large XML -


i don't care programming language use long supported in linux.

the point reading xml files , convert them json array mapping key json key. i've tried already. php

  • using simplexml_load_file
  • quick parsing
  • single threaded
  • not memory management

python

  • using minidom.parse
  • slow parsing
  • multiprocessing pool gets stuck
  • awesome memory management

nodejs

  • usibg xml2js
  • slow parsing
  • a bit multiprocessing using async
  • not memory management

what can make faster. thanks.

edit: importance multi processing have 50 xml's multiplied 5 directories

this producer should run once hour

if speed , memory issue , if don't mind little bit of coding, perhaps reasonable use stream parsers such xml.sax or xml.etree.elementtree.iterparse.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -