# TCP socket allocations

**URL:** https://discourse.julialang.org/t/tcp-socket-allocations/69254
**Category:** Performance
**Tags:** question
**Created:** [October 5, 2021, 9:00pm UTC](https://discourse.julialang.org/t/tcp-socket-allocations/69254 "2021-10-05T21:00:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Dilchatto](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dilchatto/32/22393_2.png) [@Dilchatto](https://discourse.julialang.org/u/Dilchatto)
#### Post date: [October 5, 2021, 9:00pm UTC](https://discourse.julialang.org/t/tcp-socket-allocations/69254/1 "2021-10-05T21:00:51Z")

</div>

Hi.  
I found that this method always dynamically allocates memory.

```julia
@allocated write(soc::TCPSocket, x)

```

How can I avoid this? Is there some StaticTCPSocket package?
