[erlang-questions] xmerl still slow?

Bertil Karlsson bertil.karlsson@REDACTED
Wed Jan 31 12:13:23 CET 2007


There have not been any performance optimisations.

/Bertil

Joel Reymont wrote:
> 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/
>
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>   



More information about the erlang-questions mailing list