This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author greatbahram
Recipients benjamin.peterson, greatbahram
Date 2020-06-01.07:29:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590996593.69.0.395710179529.issue39189@roundup.psfhosted.org>
In-reply-to
Content
Well, I think because the io module provides Python’s main facilities for dealing with various types of I/O, so using io.DEFAULT_BUFFER_SIZE is a kind of standard buffer size. I don't see any scientific reason for choosing the 8 * 1024 inside the filecmp module.

My guess is that guy wanted to use something that is fairly small and would be okay in different circumstances (OSs) and the idea of DEFAULT_BUFFER_SIZE is the same thing.

I think, the chances are high that in the future as computers reinforce, we might change the buffer size as well. So using the io.DEFAULT_BUFFER_SIZE will guarantee that we only change io.DEFAULT_BUFFER_SIZE and every module would be okay automatically?
History
Date User Action Args
2020-06-01 07:29:53greatbahramsetrecipients: + greatbahram, benjamin.peterson
2020-06-01 07:29:53greatbahramsetmessageid: <1590996593.69.0.395710179529.issue39189@roundup.psfhosted.org>
2020-06-01 07:29:53greatbahramlinkissue39189 messages
2020-06-01 07:29:52greatbahramcreate