We are assembling a release build of OsEngine to speed it up by 10 percent

We are assembling a release build of OsEngine to speed it up by 10 percent

In this post, we will learn how to build OsEngine in what is called a release version. This is necessary if you want to speed up the optimizer's work. The acceleration is not significant, around 10%, but in some cases, it may be needed.

 

1. Open the project folder. 

You will need to download OsEngine: OsEngine.

Install Visual Studio: Visual Studio.

You will see a folder like this:

2. Create a Release folder next to Debug.

Here:

3. Inside the Release folder, create a net 9.0-windows folder.

Like this:

4. Copy the contents of the Debug folder into this new folder.

It should look like this:

5. Open the project from Visual Studio and build Release. 

Go here and open the project:

After this:

1. Change the build type to Release in the dropdown menu.

2. Click the Start button.

3. When the program opens, you can close both it and Visual Studio.

 

6. Now run OsEngine from the Release folder. 

To do this:

1. Go to the Release folder.

2. Launch the OsEngine exe file.

3. That's it! This is the accelerated version of the program!

 

7. Comparison of results. 

For tests, we took the BollingerTrailing strategy and ran the optimizer from the Debug and Release builds sequentially with the same settings and data.

The Debug build took 356 seconds:

The Release build took 310 seconds, which is 13% faster:

Happy algorithm trading!