shinseongsu commented on PR #1538: URL: https://github.com/apache/httpcomponents-core/pull/1538#issuecomment-7219738906
Thanks for the review and approval! 🙏 Fully agreed on streaming being the right approach. For context, I started by trying out the examples on the Getting Started page, which read the response with EntityUtils.toString(). I then used the same pattern in a side project and noticed it was slower than expected, which is what led me to look into the performance and put this PR together. The same pattern also shows up in the Elasticsearch REST client docs and many tutorials, so I suspect a lot of users simply follow what the examples show. Would you be open to a small docs PR that adds a streaming example (e.g. passing entity.getContent() directly to a JSON parser) and notes that EntityUtils is meant for small, bounded content only? Happy to put that together 📝 -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
