Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use BufferedWriter to output Job for 200 fold performance improvement #3583

Merged
merged 1 commit into from Sep 10, 2020

Conversation

jelovirt
Copy link
Member

@jelovirt jelovirt commented Sep 10, 2020

Description

Use a BufferedWriter instead of direct FileOutputStream to serializeJob objects. On ~23 MB .job.xml file, the serialization time is 200 times shorter. The poor performance seems to be caused by slow UTF-8 encoding used by XMLOutput implementation.

Type of Changes

  • New feature (non-breaking change which adds functionality)

Documentation and Compatibility

No documentation changes needed.

@jelovirt jelovirt added the enhancement Changes to an existing feature label Sep 10, 2020
@jelovirt jelovirt added this to In progress in Next via automation Sep 10, 2020
@jelovirt jelovirt moved this from In progress to Review in progress in Next Sep 10, 2020
robander
robander previously approved these changes Sep 10, 2020
Next automation moved this from Review in progress to Reviewer approved Sep 10, 2020
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
@jelovirt jelovirt force-pushed the feature/job-write-buffered-writer branch from 91ff96d to adcd908 Compare September 10, 2020 17:58
Next automation moved this from Reviewer approved to Review in progress Sep 10, 2020
Next automation moved this from Review in progress to Reviewer approved Sep 10, 2020
@jelovirt jelovirt merged commit a18da24 into develop Sep 10, 2020
Next automation moved this from Reviewer approved to Done Sep 10, 2020
@jelovirt jelovirt deleted the feature/job-write-buffered-writer branch September 10, 2020 18:26
@jelovirt jelovirt added this to the Next milestone Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Changes to an existing feature
Projects
No open projects
Next
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants