# 性能优化方法

主要的视频编码任务都需要进行性能优化，而通常会以牺牲视觉质量或功耗为代价进行性能优化。有些性能优化技术在提高性能的同时不会对功耗产生巨大的影响，有些也可能不会对质量带来很大影响。其它的性能优化技术则可能在提高性能的同时对质量或功率产生影响。

算法优化有助于加速视频编解码中涉及到的处理速度。如果算法在多核或多CPU环境中运行，则存在很多的并行化方法以供选择。此外，编译器优化和代码优化也会带来额外的性能提升。除了如上的技术之外，发现并消除性能瓶颈也是一种优化性能的重要方式。接下来将介绍视频编码上下文中的常见的性能优化技术。


---

# 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://wangwei1237.gitbook.io/digital_video_concepts/shi-pin-bian-ma-xing-neng/5_4_0_performanceoptimizationapproaches.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.
