[erlang-questions] xmerl still slow?
Joel Reymont
joelr1@REDACTED
Wed Jan 31 11:31:14 CET 2007
Christian,
On Jan 31, 2007, at 10:24 AM, Christian S wrote:
> Why does that template-method require a fast xml parser? Parse once
> and
> save the result for each application.
You are right. The approach that SeeThrough uses is the following:
apply_template(File, Env) ->
{Tree, _Misc} = xmerl_scan:file(File),
xmerl:export_simple(
[visit(Tree, Env)], xmerl_xml).
There's nothing to say that the template cannot be pre-scanned and
saved once, followed by multiple applications of xmerl:export_simple.
I'm still wondering if any performance optimizations have gone into
xmerl in the past two years. Anyone?
Thanks, Joel
--
http://wagerlabs.com/
More information about the erlang-questions
mailing list