Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#3826 closed defect (fixed)

Do not use Susan for generation of _init.xml

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone:
Component: Code Generation Version:
Keywords: Cc: Per Östlund, Adrian Pop

Description

Currently, we use the Susan templates to generate the XML-file. The problem is this file can be quite large and all text is stored in memory. It should be possible to do something similar to the code used for JSON output: do as little memory allocation as possible and just write the XML to file. Similar for the JSON code, more things should be possible to write directly to file (external object) without any sort of allocation (expressions, component references). Or perhaps using the IOStream stuff for this.

Susan is nice, but I think we do not need the overhead it imposes just to indent things "easier". The XML structure is very straight-forward.

Change History (3)

comment:1 by Martin Sjölund, 9 years ago

Milestone: Future1.10.0
Owner: changed from Lennart Ochel to Martin Sjölund
Status: newaccepted

comment:2 by Martin Sjölund, 9 years ago

Resolution: fixed
Status: acceptedclosed

This was fixed although Adrian did not like the solution.

comment:3 by Martin Sjölund, 7 years ago

Milestone: 1.10.0

Milestone deleted

Note: See TracTickets for help on using tickets.