shogg / edifact

Read edifact into your Go data structures.
MIT License
18 stars 7 forks source link

handle release character ? in segment composites and elements #1

Closed shogg closed 3 years ago

shogg commented 3 years ago

While implementing this, try to reduce the number of memory allocations. Currently every access to data in a segment requires eight allocations. Idea is to work on the unchanged stream data. Process release char ? but leave it in place while drilling down from segment to composite to element. Only if an element contains a release character ? an allocation should be needed to remove the release character.

shogg commented 3 years ago

implemented in 1efb937