# Few optimizations for nodes and farmers

**URL:** <https://forum.autonomys.xyz/t/few-optimizations-for-nodes-and-farmers/877>\
**Category:** Guides and FAQs\
**Created:** [October 12, 2022, 10:53am UTC](https://forum.autonomys.xyz/t/few-optimizations-for-nodes-and-farmers/877 "2022-10-12T10:53:34Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Rabinovitch](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.autonomys.xyz/rabinovitch/32/99_2.png) [@Rabinovitch](https://forum.autonomys.xyz/u/Rabinovitch)\
**Post date:** [December 9, 2023, 7:05pm UTC](https://forum.autonomys.xyz/t/few-optimizations-for-nodes-and-farmers/877/11 "2023-12-09T19:05:52Z")

</div>

> [@SeryogaLeshii](#):
>
> ```auto
> export RUSTFLAGS="-C target-cpu=native"
> export CFLAGS="-march=native -O3"
> export CXXFLAGS="$CFLAGS"
> 
> ```

> [@Binaries compilation errors, error\[E0432\], error\[E0599\]](https://forum.autonomys.xyz/t/binaries-compilation-errors-error-e0432-error-e0599/2229/4):
>
> Looks a bit random. I don’t think you need to specify optimization level (it is like that for production already) or C/C++ flags (not sure why you have them there). Also native is not always the most performant, but will not hurt generally. Even if you don’t specify any of those environment variables, you should get efficient and performant build (though I would recommend main branch before the next release due to [Fix AES-NI enablement by default, including when building container images by naza…](https://github.com/subspace/subspace/pull/2291)

---

_[View the full topic](https://forum.autonomys.xyz/t/few-optimizations-for-nodes-and-farmers/877)._
