|
Is there a runtime performance penalty when using interfaces (abstract base classes) in C++?
Started by andreas buykx on
, 18 posts
by 17 people.
Answer Snippets (Read the full thread at stackoverflow):
Also, when you use a virtual function the compiler cannot inline the function... .
This gives a small penalty compared to a direct call to the function.
You are unlikely.
There is a small penalty per virtual function call compared to a regular call.
|
|
Is there a performance penalty for working with a vector from the standard library in C++ instead of arrays in C?
Started by Dzhelil Rufat on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Fixed-sized arrays in C will have the slight advantage that their address is fixed after linking (if ... .
No, there's not (provided you compile with optimization so inlining can happen), provided you mean dynamically sized C "arrays" obtained with malloc .
|
|
Is there any performance penalty in using the var declaration in c# 3.0+? Resharper is constantly nagging me to use it liberally, and I want to know if there is any downside to it.
Started by Ash on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
See also this question....
No there isn't anyway).
Whether there are downsides, that's a different story.
However, it can make your no, there's no penalty performancewise.
There is no performance penalty, as the type inference is at compiletime.
|
Ask your Facebook Friends
|
Hi all,
What would be the performance penalty of using strings as primary keys instead of bigints etc.? String comparison is much more expensive than integer comparison, but on the other hand I can imagine that internally a DBMS will compute hash keys...
Started by andreas buykx on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
It all depends.
The penalty in practice can range from insignificant to huge.
The DB needs to maintain a B-Tree as with numeric pk) .
That internally a DBMS will compute hash keys to reduce the penalty.
|
|
I am considering the move to the other side of development, as a contract programmer.
SO has given me a good few hints on the kind of figures to quote ( and why ), and a few points to bear in mind such as Non-competition and [IP Protection]
Having worked...
Started by Everyone on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
In other words, adding any kind of penalty.
A customer might be culpable in delaying your own delivery .
|
|
What's the performance penalty on defining classes in an aspx/ascx codebehind rather than compiling them into a dll beforehand? I know that this isn't a best practice and that there are numerous problems with this (e.g. difficult to unit test, code is...
Started by Kevin Pang on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Under the deployment scenario you have indicated:
When files / directories change:
penalty: recompilation to a new assembly ....
penalty after the initial dynamic compilation (which will occur on the first hit to the page whose code pages.
|
|
Long time ago, I was creating a mini ORM using reflection.
While reading about reflection I got a similar answer like this:
Java Reflection Performance
Which makes completely sense and I quit my mini orm and sharpen my CTRL+C, CTRL+V keys ( the lib was...
Started by Oscar Reyes on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Doesn't NHibernate cache the class info gathered through reflection so you only pay the penalty.
|
|
Being relatively new to the software industry I have come across a question of deadline enforcement:
Back in the idyllic age of academia, the deadline was the end of the semester and the penalty was a well defined 'F' (or local equivalent). Out here in...
Started by Arthur Ulfeldt on
, 38 posts
by 37 people.
Answer Snippets (Read the full thread at stackoverflow):
But there is some....
Previous PM established penalty for missing deadline simply the penalty.
Rather than a penalty, how about realistic estimates and rewarding on-time releases?
Inspired dramatically missed the unrealistic schedule.
|
|
Following on from this question:
http://stackoverflow.com/questions/334472/run-wcf-servicehost-with-multiple-contracts
Are there any performance penalties from running multiple service hosts as suggested in one of the answers?
I am looking at implementing...
Started by WillH on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The only advantages....
How are you hosting them? IIS? Windows service? Console app? In almost all cases once the services spin up you are not going to see much performance difference between running them as one service or running them as independent services .
|
|
On a windows OS (Server 2003, XP, Vista, Win7 etc.), is there a performance penalty for having too many files in a single folder?
Will a folder scan become slower (when viewing the folder in windows explorer)? Will direct access become slower (copying...
Started by harlev on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Folder scan - yes very much so, I have a server with ~65k files in it, take about 45 mins to enumerate Depends, if you... .
The larger amount of files in a directory, the longer it takes to enumerate, and the more resources it takes to enumerate .
Yes and no.
|