Overhead is any combination of excess or indirect computation time, memory, bandwidth, or other resources that are required to attain a particular goal.
Questions tagged [overhead]
306 questions
217
votes
13 answers
Android Studio Google JAR file causing GC overhead limit exceeded error
I am using Android Studio on OS X. I am getting this error message:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:preDexDebug'.
com.android.ide.common.internal.LoggedErrorException: Failed to run…

amlwwalker
- 3,161
- 4
- 26
- 47
200
votes
13 answers
What is "overhead"?
I am a student in Computer Science and I am hearing the word "overhead" a lot when it comes to programs and sorts. What does this mean exactly?

yuudachi
- 2,266
- 3
- 17
- 17
172
votes
3 answers
How much overhead does SSL impose?
I know there's no single hard-and-fast answer, but is there a generic order-of-magnitude estimate approximation for the encryption overhead of SSL versus unencrypted socket communication? I'm talking only about the comm processing and wire time, not…

joel.neely
- 30,725
- 9
- 56
- 64
164
votes
4 answers
In MySQL what does "Overhead" mean, what is bad about it, and how to fix it?
simple question, but its been nagging me for a while now....
what is "overhead" in MySQL, and should i be worried?
does clicking "optimize table" fix it for real?

johnnietheblack
- 13,050
- 28
- 95
- 133
114
votes
10 answers
Import package.* vs import package.SpecificType
Would it suppose any difference regarding overhead to write an import loading all the types within one package (import java.*); than just a specific type (i.e. import java.lang.ClassLoader)? Would the second one be a more advisable way to use than…

Juan Carlos Blanco Martínez
- 1,927
- 5
- 23
- 28
74
votes
15 answers
How much overhead is there in calling a function in C++?
A lot of literature talks about using inline functions to "avoid the overhead of a function call". However I haven't seen quantifiable data. What is the actual overhead of a function call i.e. what sort of performance increase do we achieve by…

Obediah Stane
- 15,471
- 14
- 39
- 28
66
votes
6 answers
In what ways do C++ exceptions slow down code when there are no exceptions thown?
I have read that there is some overhead to using C++ exceptions for exception handling as opposed to, say, checking return values. I'm only talking about overhead that is incurred when no exception is thrown. I'm also assuming that you would need to…

user189169
- 855
- 1
- 7
- 7
56
votes
5 answers
Java if vs. try/catch overhead
Is there any overhead in Java for using a try/catch block, as opposed to an if block (assuming that the enclosed code otherwise does not request so)?
For example, take the following two simple implementations of a "safe trim" method for…

PNS
- 19,295
- 32
- 96
- 143
55
votes
8 answers
Time measuring overhead in Java
When measuring elapsed time on a low level, I have the choice of using any of these:
System.currentTimeMillis();
System.nanoTime();
Both methods are implemented native. Before digging into any C code, does anyone know if there is any substantial…

Lukas Eder
- 211,314
- 129
- 689
- 1,509
48
votes
8 answers
Can placement new for arrays be used in a portable way?
Is it possible to actually make use of placement new in portable code when using it for arrays?
It appears that the pointer you get back from new[] is not always the same as the address you pass in (5.3.4, note 12 in the standard seems to confirm…

James Sutherland
- 3,793
- 2
- 27
- 24
46
votes
4 answers
Memory layout of a .NET array
What is the memory layout of a .NET array?
Take for instance this array:
Int32[] x = new Int32[10];
I understand that the bulk of the array is like this:
0000111122223333444455556666777788889999
Where each character is one byte, and the digits…

Lasse V. Karlsen
- 380,855
- 102
- 628
- 825
41
votes
5 answers
Overhead of a .NET array?
I was trying to determine the overhead of the header on a .NET array (in a 32-bit process) using this code:
long bytes1 = GC.GetTotalMemory(false);
object[] array = new object[10000];
for (int i = 0; i < 10000; i++)
array[i] = new…

Qwertie
- 16,354
- 20
- 105
- 148
39
votes
7 answers
What is the most efficient binary to text encoding?
The closest contenders that I could find so far are yEnc (2%) and ASCII85 (25% overhead). There seem to be some issues around yEnc mainly around the fact that it uses an 8-bit character set. Which leads to another thought: is there a binary to text…
Mark
36
votes
6 answers
C++ exception overhead
Why do embedded platform developers continuosly attempt to remove usage C++ exceptions from their SDKs?
For example, Bada SDK suggests the following workaround for the exception usage, which looks exceptionally ugly:
result
MyApp::InitTimer()
{
…

Yippie-Ki-Yay
- 22,026
- 26
- 90
- 148
35
votes
1 answer
Does using std::array lead to code bloat?
I have seen in a few places the recommendation to use std::array over C-style arrays in C++, claiming it is a better, safer alternative with no overhead. See:
The standard container array [...] has no space overheads beyond what
it needs to hold…

frangio
- 855
- 7
- 18