Top "Optimization" questions

Optimization is the act of improving a method or design.

Reducing memory usage of .NET applications?

What are some tips to reduce the memory usage of .NET applications? Consider the following simple C# program. class Program { …

c# .net optimization memory memory-optimization
Optimization and flags for making a static library with g++

I am just starting with g++ compiler on Linux and got some questions on the compiler flags. Here are they …

c++ optimization g++ compiler-flags
std::map insert or std::map find?

Assuming a map where you want to preserve existing entries. 20% of the time, the entry you are inserting is new …

c++ optimization stl stdmap
How to read BufferedReader faster

I want to optimize this code: InputStream is = rp.getEntity().getContent(); BufferedReader reader = new BufferedReader(new InputStreamReader(is)); String text = ""; …

java optimization bufferedreader
How to see which plugins are making Vim slow?

Is there a way to profile Vim plugins? My MacVim becomes slower and slower when I open a large .py. …

debugging optimization vim macvim
PHP Objects vs Arrays -- Performance comparison while iterating

I have a huge amount of PHP objects for a neural network for which I have to iterate over and …

php arrays optimization object
Virtual functions and performance - C++

In my class design, I use abstract classes and virtual functions extensively. I had a feeling that virtual functions affects …

c++ performance optimization virtual-functions
Tools for JPEG optimization?

Do you know of any tools (preferrably command-line) to automatically and losslessly optimize JPEGs that I could integrate into our …

optimization jpeg
Python equivalence to inline functions or macros

I just realized that doing x.real*x.real+x.imag*x.imag is three times faster than doing abs(…

python optimization inline-functions
Trying to understand gcc option -fomit-frame-pointer

I asked Google to give me the meaning of the gcc option -fomit-frame-pointer, which redirects me to the below statement. …

c performance optimization gcc