> For the complete documentation index, see [llms.txt](https://docs.kodezi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kodezi.com/feature-guides/optimizing.md).

# Optimizing

The code optimization in the synthesis phase is a program transformation technique, which tries to improve the intermediate code by making it consume fewer resources (i.e. CPU, Memory) so that faster-running machine code will result. Our State of the art Optimization feature will target the optimization of various activities such as Loop Unrolling, Instruction Scheduling, Register Allocation, and Dead Code elimination.&#x20;

The optimization process will be performed to improve the performance of the application by reducing the overall execution time, memory usage, and power consumption.

### Step 1 :

Log in first with Google Authentication on Kodezi.

<figure><img src="/files/sBFAeQYa8JQh8o22tLtU" alt=""><figcaption></figcaption></figure>

### Step 2 :

After successfully logging in, select the Optimizing button for the short method, or use the context menu when right-clicking the code editor.

<div><figure><img src="/files/catuLQLLpgW61COM4IgZ" alt=""><figcaption><p>Kodezi Quick Explorer</p></figcaption></figure> <figure><img src="/files/LmRvgFbdWZJTTThpfkXU" alt=""><figcaption><p>Visual Studio Code Context Menu</p></figcaption></figure></div>

{% hint style="warning" %}
At this time optimizing large amounts of code simultaneously is not supported. We recommend choosing a specific block of code to optimize instead.&#x20;
{% endhint %}

### Step 3 :

After clicking on the optimizing button, the optimizing process will start.

<figure><img src="/files/3rsyvqIsMzIUiXURwkYp" alt=""><figcaption></figcaption></figure>

### Step 4 :

You will see results similar to these in your IDE once the optimizing process is finished.

<figure><img src="/files/OmQCK1zo3ixtK6vFcTHN" alt=""><figcaption></figcaption></figure>

### Step 5 :

Now you can simply click on the apply button for the result that will add to your original file.
