Which Haskell XML library to use?

前端 未结 3 607
旧巷少年郎
旧巷少年郎 2020-12-07 13:26

I see that there is a few of XML processing libraries in Haskell.

  • HaXml seems to be the most popular (according to dons)
  • HXT seems to be the most adva
3条回答
  •  抹茶落季
    2020-12-07 13:34

    HXT's main problem, aside from the unusual arrow syntax, is performance and memory usage. I have an app that spends 1.2 seconds processing about 1.5MB of XML, consuming about 2.3GB (!) of memory in the process. Libxml2 takes a few milliseconds on the same data. Extracting data via the css function and arrow predicates also seems very slow compared to Libxml2.

提交回复
热议问题