Ancestors

Toot

Written by Philip Hofstetter on 2024-10-17 at 13:56

After a discussion about the ridiculousness that it took Java 30 years to provide a built-in means to copy from an InputStream to an OutputStream, I looked at the 1000s of helpers everybody wrote in the mean time and everybody seems to converge on an 8KB buffer.

Why?

Why 8KB? Why not 4KB (memory page size, disk sector size)? Why not 2MB?

Does anybody know?

=> More informations about this toot | More toots from pilif@mastodon.social

Descendants

Written by Jan Lehnardt :couchdb: on 2024-10-20 at 06:58

@pilif this is the kind of stuff that @tef tends to have an angle on. My guess would be optimisation for throughput or leftover from spinning disks days.

=> More informations about this toot | More toots from janl@narrativ.es

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113323106474532427
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
254.494163 milliseconds
Gemini-to-HTML Time
0.703409 milliseconds

This content has been proxied by September (3851b).