Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6996555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:10:20+00:00 2026-05-27T20:10:20+00:00

When copying, commons-io uses a local buffer: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/CopyUtils.java?view=markup (search for DEFAULT_BUFFER_SIZE) while Eclipse uses

  • 0

When copying, commons-io uses a local buffer:

http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/CopyUtils.java?view=markup
(search for DEFAULT_BUFFER_SIZE)

while Eclipse uses a static synchronized buffer that prevents concurrent copy operations:
http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.core.resources/src/org/eclipse/core/internal/utils/FileUtil.java?view=markup
(search for buffer)

It seems like the static buffer may improve performance when coping small files sequentially but will degrade performance in parallel copy.

Does eclipse static synchronized buffer have real world performance improvements or it is just over-engineering?

What do you recommend using in this case?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:10:21+00:00Added an answer on May 27, 2026 at 8:10 pm

    It really makes no significant performance difference, and a static buffer is generally a really bad idea unless you know you are threadsafe. They did it (if you look at the comment) because they understand the synchronization in a higher level object.

    So always just allocate a dynamic buffer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting following exception while ftp file over to some other machine. org.apache.commons.net.io.CopyStreamException:
Is there a standard Java library that handles common file operations such as moving/copying
I am working with files (reading, writing and copying) in my Java application, java.io.File
I'm trying to upload large file (>100Mb) using Apache commons-net FTP library to Secure
Copying Zenf Framework everywhere is a nightmare, so I had an idea, thas deployment
When copying large files using shutil.copy() , you get no indication of how the
Is copying the .hg directory to another directory the same as cloning in Mercurial
I'm copying a file from folder A to folder B and then trying to
Short of copying the entire .netbeans directory is there any way to transfer custom
If I start copying a huge file tree from one position to another or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.