Skip to content

File Reader / Writer not processing the full file before writing? #4582

Answered by tonygermano
martinjaehn asked this question in Q&A
Discussion options

You must be logged in to vote

You don't show how this was done when you were still using a File Writer. Were you using the same code with Raw inbound and outbound types for your transformer? Or did you have your types set to Delimited?

e4x gets really slow the more children are added to an element (rows in your case if the type was delimited.)

In your Javascript Writer code you get around this by deserializing and serializing a line at a time and building the result as a string instead of a giant XML object that gets serialized all at once.

I have a feeling if you used the same transformer from the File Writer, and only used the Javascript Writer to write the resulting message to a file, it would take the same amount …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@martinjaehn
Comment options

Comment options

You must be logged in to vote
1 reply
@martinjaehn
Comment options

Answer selected by martinjaehn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants