# Performances

[Les accès mémoire](/resources/performances/les-acces-memoire.md) va expliquer :

* Les cache lines
* La pile et le tas
* Les allocateurs
* L'alignement en mémoire

[Les options du compilateur](/resources/performances/les-flags-de-compilateur.md) va couvrir :

* Les options générales
* La Link-Time Optimization
* L'optimisation ciblant une architecture
* La Profile-Guided Optimization

[Les indices au compilateur](/resources/performances/les-indices-au-compilateur.md) va aborder :

* Les attributs standards
* Les prédictions de branches
* \_\_builtin\_expect(value, expected)
* Le *strict aliasing*
* Le mot-clé *restrict*
* Des attributs non-standards
* D'autres instructions (unreachable, assume)

[La vectorisation](/resources/performances/la-vectorisation.md) va se baser sur [un exemple](https://godbolt.org/g/M8Eqe2) pour parler :

* Des instructions SIMD
* Des optimisations possibles pour la vectorisation

Le temps de compilation va présenter :

* Les principaux facteurs de ralentissement
* Les *forward declarations*
* Le pattern *Pointer to Implementation* (pimpl)
* Quelques solutions de compilateurs et systèmes de build


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cours-cpp.gitbook.io/resources/performances.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
