Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 595 Bytes

text_handling_00.md

File metadata and controls

13 lines (7 loc) · 595 Bytes

Questions

Question 1: Stream processing vs. buffered processing

What is the advantage and disadvantage of stream processing and buffered processing. Can you give a few examples on each approach?

Question 2: Lifetime

Since streaming is usually resource critical. So who should manage the lifetime of stream? For example. If we have a stream and a text reader who uses the stream. When should text reader closes the stream and when should not.

Question 3: How large is your buffer

How large is your buffer that temporarily hode part of the text stream. 1 char? or many chars? Why.