ZENOTME commented on issue #56: URL: https://github.com/apache/avro-rs/issues/56#issuecomment-2499765618
> Do you need to keep the inner_writer as a field ? You can create an instance when you need to write something and then discard it, e.g. in OutWriter::write() method. For example, I want user to use the writer like following: ``` outside_writer.write() outside_writer.write() // user can call write multiple times. outside_writer.close() ``` In this case, I have to cache the content of each write. When the user calls close, create an Avro writer and write all cached content at once. But if I can keep the inner_writer as a field, I don't need to cache the content. I think this will cause more memory consumption, at most twice I think. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
