overhead

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 inlining functions? ...

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 the other one? ...

Is there a way to enforce function inlining in c#?

As far as I know there's no way to hint the c# compiler to inline a particular function and I guess it's like that by design. I also think that not letting the programmer to specify what to inline and what not is generally a good idea, as it would imply that you think you're smarter than the JIT compiler (my respects to those who actual...

What is the processing overhead of length() in REXX?

How does the processing overhead of the length() function in REXX change with the length of the string? Update: I'm using: uni-REXX (R) Version 297t Open-REXX (TM) Copyright (C) iX Corporation 1989-2002. All rights reserved. ...

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 corresponds to indices into the array. Additionally, I know that there is a type refere...

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 counting application-level processing. Update There is a question about HTTPS versus HT...

What is the overhead cost of an empty vector?

What is the memory overhead of having an empty vector vs having a pointer to a vector? Option A: std::vector<int> v; Option B: std::vector<int> *v = NULL; I believe that option B takes 1 32 bit pointer (assuming 32 bit here) How much memory does the empty 'v' take up? ...

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? ...

Overhead of log information in files

Hello, I am doing some long simulations that can take from several hours to several days and I am logging the information into files. The files can reach sizes of hundreds of Mb and inside there is just a list of numbers. I am really concern about the overhead that this is originating. I would like to ask if the overhead of using this m...

high overhead in new mysql table

Hi, does anyone knows why I get an overhead of 131.0 MiB on a newly created table (zero rows)? im using phpmy admin and the code of my script is CREATE TABLE IF NOT EXISTS `mydb`.`mytable` ( `idRol` INT NOT NULL AUTO_INCREMENT , `Rol` VARCHAR(45) NOT NULL , PRIMARY KEY (`idRol`) ) ENGINE = InnoDB; thanks in advance. ...

What is the memory overhead of an object in Java?

Duplicate: What is the memory consumption of an object in Java? Assuming Java 1.6 JVM on 64-bit Linux on an Intel or AMD box, creating a simple object uses how much memory overhead in bytes? For example, each row in a 2-dimensional array is a separate object. If my array is large, how much RAM will I be using? ...

OpenMP - terrible performance - a simple issue of overhead, or is there a program flaw? (C)

I have here what I understand to be a relatively simple OpenMP construct. The issue is that the program runs about 100-300x faster with 1 thread when compared to 2 threads. 87% of the program is spent in gomp_send_wait() and another 9.5% in gomp_send_post. The program gives correct results, but I wonder if there is a flaw in the cod...

Overhead of a switch statement in C

Hi all! I'm a fairly competent Java programmer who's very new to C. I am trying to optimize a routine that has four modes of operation. I loop over all the pixels in an image and compute a new pixel value depending on the 'mode' passed. My question regards the overhead of a switch statement within two nested for loops. I'd be interest...

What exactly do pointers store? (C++)

I know that pointers store the address of the value that they point to, but if you display the value of a pointer directly to the screen, you get a hexadecimal number. If the number is exactly what the pointer stores, then when saying pA = pB; //both are pointers you're copying the address. Then wouldn't there be a bigger overhead t...

Struct's contribution to type size

I am wondering why the following two types struct { double re[2]; }; and double re[2]; have the same size in C? Doesn't struct add a bit of size overhead? Thank you in advance. ...

Overhead of C++ inheritance with no virtual functions

Hi, In C++, what's the overhead (memory/cpu) associated with inheriting a base class that has no virtual functions? Is it as good as a straight up copy+paste of class members? class a { public: void get(); protected: int _px; } class b : public a { } compared with class a { public: void get(); protected: int _px; }...

PHP IF Statement Evaluation & Server Overhead

I'm curious what the impact on the server is when PHP if statements are evaluated, i.e. memory consumption and CPU usage and if this could become a major issue as traffic grows? For example, if I use a lot of PHP IF statements in the theme for each post summary on a WordPress blog, is this going to require a great deal more server resou...

How much table overhead is too much?

I just saw in phpMyAdmin that one of our MySQL tables is 14MB in size, but has 10MB overhead. I'm guessing this is a lot! How much is too much? Should I run OPTIMIZE TABLE regularly? ...

Overhead due to use of Events

I have a custom thread pool class, that creates some threads that each wait on their own event (signal). When a new job is added to the thread pool, it wakes the first free thread so that it executes the job. The problem is the following : I have around 1000 loops of each around 10'000 iterations do to. These loops must be executed sequ...

Overhead with PPP and Ethernet

What is the overhead for PPP and Ethernet sending 5000 bytes? Frame size for Point-to-Point Protocol: 8 bytes MTU: 500 bytes Frame size for Ethernet: 18 bytes MTU: 1500 bytes Both sending 5000 bytes.. I know this is just a calculation, but I am not sure how to do it. I can't find it anywhere. I would think that since a PPP frame take...