DAI 2023-2024 - Java IOs benchmarking - Alexandre Philibert #72
Closed
AlexandrePhilibert
started this conversation in
Show and tell
Replies: 1 comment
-
Thank you for the mention of the tables' source! Great usage of ChatGPT. I would add that this scientific methodology to benchmark our applications can ensure the performance are still good over time for the use cases we are managing. EDIT: For text files, do not forget to specify the charset of the file (while reading and writing!). It is more explicit and you can avoid many issues in the future. One of the constructors for the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Repo
Which type of stream is the most efficient for each use case?
Buffered
Why is it more efficient than the other types of streams?
Because we do not do a syscall for each byte, thus reducing the overhead of each
.write()
or.read()
callsWhat is the difference between binary data and text data?
One is human readable
What is a character encoding?
A character encoding specifies how to "translate" bytes into text and the other way.
Why is this methodology important?
Understanding how to best use the tools at our disposal is important
Text Data
Binary Data
© ChatGPT for the tables
Beta Was this translation helpful? Give feedback.
All reactions