# Does Image Rendering "shell out"?

**URL:** <https://forum.elixirforum.com/t/does-image-rendering-shell-out/14499>\
**Category:** Questions\
**Tags:** processes, image-processing, threads\
**Created:** [June 1, 2018, 11:12pm UTC](https://forum.elixirforum.com/t/does-image-rendering-shell-out/14499 "2018-06-01T23:12:48Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dimitarvp](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/dimitarvp/32/38664_2.png) [@dimitarvp](https://forum.elixirforum.com/u/dimitarvp)\
**Post date:** [June 2, 2018, 1:30pm UTC](https://forum.elixirforum.com/t/does-image-rendering-shell-out/14499/3 "2018-06-02T13:30:26Z")

</div>

What you can do is always have 1 or more executables started via `System.cmd` and waiting on their stdio for data. That’s a trick I used in other programming languages when I was concerned about the initial overhead of loading a native executable in a child shell; because now the executable is loaded and is only waiting for data.

One example coming to mind was re-coding videos through `ffmpeg`; I’d start it with all necessary flags but without any input and it would just wait on stdio until I send it a video to process. Once sent, it will process it immediately.

Can’t give you exact details but that’s usually how a pool of disposable native processes is managed.

---

_[View the full topic](https://forum.elixirforum.com/t/does-image-rendering-shell-out/14499)._
