DDObjects
Delphi Remoting, Exception Handler, Memory Profiler and Memory Leak Detection
DDObjects
Navigation
  • Home
  • DDDebug
  • DDObjects
    • Getting Started
    • Implementing Callbacks
    • Prices and Licensing
    • Frequently Asked Questions
    • What Customers say
  • About Me
    • Hohenlohe & Banghard
    • Celtic Circle Productions
    • ISIS GmbH
    • Software-Development
  • Customers
  • Blog
  • Imprint
← Beta Release of DDObjects 1.2
DDDebug heading towards 1.0 →

Caches everywhere? Measure!

December 5, 2013 | Filed under: Blog

aka Premature optimization is the root of all evil
(Part 5,000,000 and counting…)

Today I had to optimize some code as the applications memory growth went up to 1,5 GByte during runtime. Using DDDebug – yes, I am using my own tools 😉 – I realized quickly, that there has been a cache which did grow endlessly. Well… it even seemed, no one ever did check the cache usage: the hit/miss ratio was somewhere around 1 to 5 and worse. As the cache did contain Bitmaps of different size the memory usage was huuuuge. In the end, Knuth proofed to be right again. Disabling the cache did lead to no performance penalty and memory usage is stable now: down from 1,5 GByte to 100 MByte.

← Beta Release of DDObjects 1.2
DDDebug heading towards 1.0 →

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Pages

  • DDDebug
  • DDObjects
    • Getting Started
    • Implementing Callbacks
    • Prices and Licensing
    • Frequently Asked Questions
    • What Customers say
    • Demos and Samples
  • About Me
    • Hohenlohe & Banghard
    • Celtic Circle Productions
    • ISIS GmbH
    • Software-Development
  • Customers
  • Blog
  • Imprint

Categories

  • Blog (3)
  • Freeware (6)
  • News and Updates (27)
  • Uncategorized (2)

© 2023 DDObjects