FileOutputStream v. ByteArrayOutputStream: is there a noticeable difference in memory usage?

This page summarizes the projects mentioned and recommended in the original post on /r/javahelp

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • fastexcel

    Generate and read big Excel files quickly

  • I'm using fastexcel to create the excel file, and I'm flushing it to the OutputStream after every row is written. Right now, I am using a FileOutputStream to write to disk. When the excel file is done being generated, I read it back in using InputStreamResource and stream the response. My thought process is that a ByteArrayOutputStream keeps everything in memory even if I'm flushing the excel file after every row, so I used the FileOutputStream. Does my logic track here? Or am I unnecessarily slowing things down with expensive filesystem IO?

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • how to create an excel file from a form in an android app

    1 project | /r/androiddev | 14 Dec 2021
  • Any good alternatives to Apache POI for creating Excel spreadsheets?

    6 projects | /r/java | 3 Jul 2021
  • WritableImage and real-time ray-tracing. I need help!

    2 projects | /r/JavaFX | 28 Mar 2022
  • Ask HN: What are you using for load testing?

    2 projects | news.ycombinator.com | 23 Apr 2024
  • Show HN: Kilo – Lightweight REST for Java

    1 project | news.ycombinator.com | 23 Apr 2024