RAD Studio 10.4.1 is now available! Learn more. Looking for discounts? Visit our Special Offers page!
CodeDelphi

Speed Up Delphi Code By Up To 200x With MtxVec Library By Dew Research

This CodeRage session by Janez Atmapuri Makovsek shows how you can use the MtxVec library to speed up the Delphi code by 200x.

The key concept is here, once you get the data to the right memory hierarchy level, you need instructions that take advantage of the available memory bandwidth.

  • Only possible with AVX (Advanced Vector Extensions)
  • Instruction Set and CPU cache rely on the assumption that the elements of the array are accessed consecutively in increasing order.

Code Example:

And here is how you can increase the speed of your Delphi code using the MtxVec

Result is amazing!

  • Running time 0.18s
  • Speed up factor: 204x

Be sure to watch full CodeRage session!


Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Learn More About Upgrading

Deep Dive Webinar: Boost C++Builder Compile Speed with TwineCompile
About author

Software Developer | B.Tech-CSE at AUT | Delphi/C++ Builder Enthusiast | Microsoft Learn Student Ambassador | Microsoft Azure Certified | Udacity Alumni
Related posts
CodeDelphi

Quickly Build Enterprise-Grade Multi-Tier Solutions Using DataSnap In Delphi And C++

C++CodeDelphi

Easily Create A Python Container Type In Delphi And Execute It In This Windows Sample App

C++DelphiRAD Studio

Manual uninstall of RAD Studio/Delphi/C++Builder 10.4 Sydney

CodeDelphiRAD Studio

Learn How To Send Arrays To A PostgreSQL Database Server Using FireDAC In Delphi On Windows

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES