You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2023/04/26 19:28:00 UTC

[jira] [Resolved] (DAFFODIL-2788) Huge number of unneccessary namespace bindings in XML output

     [ https://issues.apache.org/jira/browse/DAFFODIL-2788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Beckerle resolved DAFFODIL-2788.
-------------------------------------
    Resolution: Cannot Reproduce

Original reporter cannot find the problematic schema that motivated this ticket. 

> Huge number of unneccessary namespace bindings in XML output
> ------------------------------------------------------------
>
>                 Key: DAFFODIL-2788
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2788
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End
>    Affects Versions: 3.4.0
>            Reporter: Mike Beckerle
>            Priority: Critical
>             Fix For: 3.5.0
>
>
> On a large commercial DFDL schema project, the XML documents being produced by the parse have truly excessive numbers of entirely unnecessary namespace bindings in them. 
> The file size of XML infoset files is dominated by the namespace bindings. 
> Technically the XML is "correct" and tests don't fail, but the volume of these bindings has first order impact on:
>  * developer productivity - can't see what's going on in the XML data because it is so cluttered with bindings. What's worse, pretty printing gets very indented and ends up inserting whitespace around simple values (which breaks comparison) just due to these bindings.
>  * performance - the XML output is vastly bigger than it needs to be. XML is already big and slow, but this is just piling on!
> If this fix is reasonably localized, I might request we make a patch for 3.4.0 (ex: 3.4.1) as this issue is very important. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)