# Buffering streams in Julia?

**URL:** <https://discourse.julialang.org/t/buffering-streams-in-julia/21129>\
**Category:** Performance\
**Created:** [February 24, 2019, 1:19am UTC](https://discourse.julialang.org/t/buffering-streams-in-julia/21129 "2019-02-24T01:19:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olof\_Salberger](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/olof_salberger/32/4850_2.png) [@Olof\_Salberger](https://discourse.julialang.org/u/Olof_Salberger)\
**Post date:** [February 24, 2019, 1:19am UTC](https://discourse.julialang.org/t/buffering-streams-in-julia/21129/1 "2019-02-24T01:19:22Z")

</div>

Julia has a builtin API for streams. Is there an existing library that provides something similar to the [bufio](https://golang.org/pkg/bufio/) API in Go’s standard library, which makes it easy to add a buffering layer to encapsulate any given stream?

This would be mainly of interest for working with plaintext data efficiently by buffering large blocks of input at a time. The current API can easily lead to performance bottlenecks.

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [February 24, 2019, 1:26am UTC](https://discourse.julialang.org/t/buffering-streams-in-julia/21129/2 "2019-02-24T01:26:15Z")

</div>

Like BufferedStreams.jl?

> **[GitHub - JuliaIO/BufferedStreams.jl: Fast composable IO streams](https://github.com/JuliaIO/BufferedStreams.jl)**
>
> Fast composable IO streams. Contribute to JuliaIO/BufferedStreams.jl development by creating an account on GitHub.
