# How automatic optimizations work

Eugo rewrites and tunes your code as it runs. Here is what it does, and how to help it.

Source: https://university.eugo.io/courses/how-automatic-optimizations-work

---

- Level: Intermediate
- Duration: 29m
- Lessons: 4
- Topics: performance, gpu-acceleration, distributed-compute

## Lessons

### What the runtime does

- [The optimization pass, end to end](https://university.eugo.io/lesson/how-automatic-optimizations-work/the-optimization-pass)
- [Vectorization and the ARM advantage](https://university.eugo.io/lesson/how-automatic-optimizations-work/vectorization)

### Working with it

- [Writing code the optimizer can help](https://university.eugo.io/lesson/how-automatic-optimizations-work/writing-optimizable-code)
- [Measuring the gain honestly](https://university.eugo.io/lesson/how-automatic-optimizations-work/measuring-the-gain)

## Related reading

- [Optimizations documentation](https://docs.eugo.io/docs/optimizations)
- [Speedup explorer](/interactive)

