4

Don’t Reinvent, Reuse

After dedicating one chapter to a discussion on how to fix an algorithm, it is now time to … do it again! Truth be told, we merely scraped the surface in the previous chapter. You could write an entire book about improving algorithms but I don’t have that much space dedicated to the topic, so you will have to be satisfied with one (more) chapter.

In the previous chapter, we looked at some examples of improving speed by doing less work. This time, we’ll take a different approach and run better, more optimized code. We will, however, not optimize our code – as that is a job for the next chapter – but take the smarter way and use a well-written external library. It will not only be better than our code but will also perform ...

Get Delphi High Performance. - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.