How to Optimize Delphi Application Performance to the Max using FastCode Library

If you believe you've optimized your Delphi application to the max, and there is no room for performance improvement, then you should check out following site: http://sourceforge.net/projects/fastcode

Project Fastcode is competition of assembler developers on rewriting certain Delphi RTL functions to processor-specific code, utilizing extra instruction sets like SSE, SSE2, etc. This way Fastcode winners achieve 2x-4x performance boost compared to classic i386 implementations.

Each function in Fastcode project has 5 variants, each variant is optimized for certain processor architecture:

  • {function_name}_Blended - optimized for <= Pentium processors (employs i386, MMX instruction sets)
  • {function_name}_Pentium3 - optimized for Pentium 3 processors (employs i386, MMX, SSE)
  • {function_name}_Pentium4Northwood - optimized for Pentium 4 processors, Northwood kernel (employs i386, MMX, SSE, SSE2)
  • {function_name}_Pentium4Presscot - optimized for Pentium 4 processors, Presscot kernel (employs i386, MMX, SSE, SSE2, SSE3)
  • {function_name}_AthlonXP - optimized for Athlon XP (employs 3D-Now)
  • {function_name}_Opteron - optimized for Opteron (employs ???)

I have put together a package allowing you start on using Fastcode just in 5 mins. It contains units that auto-determine your CPU type and auto-patch VCL to use Fastcode. The following Fastcode functions are included:

  • Move - 200% performance boost
  • FillChar - 200-400% performance boost
  • Pos - 200-300% performance boost
  • CompareText - 200% performance boost

I recommend using this package in non-GUI application servers, facilitating strong memory usage, etc.

Despite it will not make your application incredibly fast, overall speed up will be about 5%.

AttachmentSize
FastcodeGerasika.zip134.58 KB

Comments

How to Optimize Delphi Application Performance to the Max using

When someone writes an article he/she maintains the plan of a user in his/her brain that how
a user can be aware of it. Thus that's why this piece of writing is outstdanding.
Thanks!

How to Optimize Delphi Application Performance to the Max using

Woah! I'm really loving the template/theme of this website.
It's simple, yet effective. A lot of times it's
hard to get that "perfect balance" between usability and
appearance. I must say that you've done a very good job with this.
Also, the blog loads very fast for me on Opera. Exceptional Blog!

How to Optimize Delphi Application Performance to the Max using

Thank you for sharing your thoughts. I really appreciate
your efforts and I am waiting for your next write ups thank you once again.

How to Optimize Delphi Application Performance to the Max using

Please let me know if you're looking for a writer for your blog.
You have some really great articles and I think I would be a good asset.
If you ever want to take some of the load off, I'd absolutely love to
write some articles for your blog in exchange for a
link back to mine. Please shoot me an e-mail if interested.
Thank you!

How to Optimize Delphi Application Performance to the Max using

As expected, admirers rushed the stage when the star of the show, the original Batmobile, made its grand entrance at
the Barrett-Jackson auction in Scottsdale. In addition,
they significantly reduce heating and cooling costs.
I liken a restoration company to a construction company.

Post new comment

The content of this field is kept private and will not be shown publicly.