I understand gcc’s --ffast-math flag can greatly increase speed for float ops, and goes outside of IEEE standards, but I can’t seem to find information on what is really...
I used a variable with a lot of data in it, say String data. I wanted to use a small part of this string in the following way: this.smallpart...
I’m working on the design for a RoR project for my company, and our development team has already run into a bit of a debate about the design, specifically...
The Java tutorials say that creating a Thread is expensive. But why exactly is it expensive? What exactly is happening when a Java Thread is created that makes its...
Problem Some time ago I posted a question about the scalability of wp_usermeta architecture: my concern, as my client’s database of users is growing fast, is now the memory...
Specifically, if I have a series of if…else if statements, and I somehow know beforehand the relative probability that each statement will evaluate to true, how much difference in...
Does creating an object using reflection rather than calling the class constructor result in any significant performance differences? 14 Answers 14
Is it better to use memcpy as shown below or is it better to use std::copy() in terms to performance? Why? char *bits = NULL; ... bits = new...
I tried to compare the performance of inline assembly language and C++ code, so I wrote a function that add two arrays of size 2000 for 100000 times. Here’s...
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only...