A while back I wrote a post about how I’ve used Stopwatch to profile .NET applications, this post is similar, it shows how “micro-benchmarking” can be done in C++ and more importantly it also shows how we can create a “using block” in C++. Update: Igal T. has written an excellent post on how … Continue reading Poor C++ developer’s performance profiler
Tag: Performance
Poor developer’s performance profiler
In the last post I wrote about a simple method that can help .NET developers micro measure the memory consumption of their application, in this post I want to show a way to measure application performance. Before I start I want to state here and now that there is no substitute to using an actual … Continue reading Poor developer’s performance profiler
Poor developer’s memory profiler
Some tools save you money. The rule of the thumb is that if you save X days using the tool and your salary is Y dollars (or whatever you get paid with) per day then the tool is worth X times Y - it’s that simple. Over the years I’ve used several tools to do … Continue reading Poor developer’s memory profiler
How does Stopwatch work
I’ve been using Stopwatch (and blogged about it) for some time and it never occurred to me to check how it really works. When using it as a benchmarking tool the fact that perhaps it wasn’t as accurate as can possible be didn’t bother me at all. The question of the accuracy of Stopwatch become … Continue reading How does Stopwatch work
Performance optimization tip – understand your memory layout
.NET take care of all memory allocation and de-allocation and after a while it seems that programmers no longer need to understand exactly how data is stored in the memory. The idea of not needing to know how data is stored could not be farther from the truth, in fact memory layout have great impact … Continue reading Performance optimization tip – understand your memory layout
Use measureIt to find out how much time it really takes
I've been interested in performance optimization from the first application I wrote and since than I been finding new ways to make my code run faster with less memory usage. Over the time I found that after discovering the existing bottlenecks in the code knowing which command takes more time to execute is always an … Continue reading Use measureIt to find out how much time it really takes
Performance Tuning in .NET using StopWatch
There comes a time in a software developer’s life where his code becomes slow. Sometime it is even possible to state the exact revision or date that caused the performance decrease. Searching the source code for the usual suspects can be futile and frustrating, and then there is the tricky part of making sure the … Continue reading Performance Tuning in .NET using StopWatch
Why should I use List and not ArrayList
I came upon a questing at StackOverflow: The system I work on here was written before .net 2.0 and didn't have the benefit of generics. It was eventually updated to 2.0, but none of the code was refactored due to time constraints. There are a number of places where the code uses ArraysLists etc. that … Continue reading Why should I use List and not ArrayList