Bug 580651 - slow autocrlf checkout
Summary: slow autocrlf checkout
Status: RESOLVED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 6.3   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: 6.4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-31 10:56 EDT by Jörg Kubitz CLA
Modified: 2022-09-20 04:23 EDT (History)
1 user (show)

See Also:


Attachments
SmudgeAutoCrLF Sampled Screenshot.png (67.61 KB, image/png)
2022-08-31 10:56 EDT, Jörg Kubitz CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Kubitz CLA 2022-08-31 10:56:20 EDT
Created attachment 288707 [details]
SmudgeAutoCrLF Sampled Screenshot.png

I just had a slow "switch branch" which gave me enough time to sample it.
 org.eclipse.jgit.util.io.AutoCRLFOutputStream.write ()
directly calls 
 java.io.FileOutputStream.write ()

.. for every line?!

would you mind to wrap that FileOutputStream into a BufferedOutputStream to reduce system calls?
Comment 1 Eclipse Genie CLA 2022-08-31 11:03:31 EDT
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/195477