Hi all,
I have a C++ method signature that looks like this:
static extern void ImageProcessing(
[MarshalAs(UnmanagedType.LPArray)]ushort[] inImage,
[MarshalAs(UnmanagedType.LPArray)]ushort[] outImage,
int inYSize, int inXSize);
I've wrapped the function in timing methods, both internal and external. Inter...
Is there any performance difference between using something like
for(int i = 0; i < 10; i++) { ... }
and
for(int i = 0; i < 10; ++i) { ... }
or is the compiler able to optimize in such a way that they are equally fast in the case where they are functionally equivalent?
Edit:
This was asked because I had a discussion with a co-work...
Is there a Firefox plugin available that will simulate various connection speeds (especially when testing from http://localhost)?
I know there are standalone applications to do it, but I'd rather have a plugin.
Thanks
Edit: Thanks to @UselessAdmin - FirefoxThrottle has now been updated to work on localhost!
...
I've not be coding long so I'm not familiar with which technique is quickest so I was wondering if there was a way to do this in VS or with a 3rd party tool?
Thanks
...
The PC I use today is a million times faster than the one I started programming on when I was in college. And yet it always seems - I am always waiting for something to get done...
Back then it would take 30 seconds to 5 minutes to assemble a program and be ready to run it. Today - a million times faster! and I am still waiting 30 seco...
Hi,
I am trying to write a script whose efficiency I am trying to measure. I have a couple of questions:-
For small applications, is this kind of profiling required? Or am I getting paranoid? (assuming most code is decently efficient/no infinite loops)
Against what should I benchmark this? What should I compare against?
Below is the e...
I am doing speed optimization for my website application. And I found some practises to do that.
For example Best Practices for Speeding Up Your Web Site from Yahoo.
Among them are:
Minify JavaScript and CSS.
Minimize number of HTTP Requests by combining several files (css, js) into one.
My question is what infrastructure, tools and ...
I have a large array of Java simple structs (consists of just primitive members) and I need to save and load them from and to a file
What would be faster,
implementing java.io.Serializable and using read/writeObject or
overriding toString() / toCSV(), adding a new constructor and reading/writing to text file?
I want to avoid b...
I have three tables. For simplicity let's say they are:
tbl1, tbl2, tbl3
both tbl2, and tbl3 have f-keys linking to tbl1
I am using 'load data infile...' as I really need the +16,000 writes/second I am getting right now with it.
I don't use auto-increment because I need the f-keys for my child records.
So I create my txtfile on the ...
Continuing along current trends we can expect our algorithms to run many times faster on Desktop Computers in 10 years (let's pick a number) 1024x faster.
Do you know of any algorithms that are within 1024 times of running on average Desktop Systems and that would dramatically change the kinds of software we can write there?
I have my ...
I'm writing a Python program with a lot of file access. It's running surprisingly slowly, so I used cProfile to find out what was taking the time.
It seems there's a lot of time spent in what Python is reporting as "{built-in method acquire}". I have no idea what this method is. What is it, and how can I speed up my program?
...
Hi folks,
Sometimes I get totally fooled trying to estimate an algorithm's speed with the O(x) notation, I mean, I can really point out when the order is O(n) or O(mxn), but for those that are O(lg(n)) or O(C(power n)) I think that I am missing something there...
So, what are your tips and tricks for an easy estimate with a fast overloo...
At my work, we use Weblogic Server to host an enterprise portal. Which is fine.
However, I've recently had the opportunity to use Tomcat for some side projects, and I am struck by the incredible difference in speed. Tomcat takes 3-5 seconds to start up, and 10-15 seconds to deploy a medium-sized projects. Wewblogic takes 3-5 minutes to ...
I remember a professor once saying that interpreted code was about 10 times slower than compiled. What's the speed difference between interpreted and bytecode? (assuming that the bytecode isn't JIT compiled)
I ask because some folks have been kicking around the idea of compiling vim script into bytecode and I just wonder what kind of pe...
This is just a question to help me understand CSS rendering better.
Lets say we have a million lines of this.
<div class="first">
<div class="second">
<span class="third">Hello World</span>
</div>
</div>
Which would be the fastest way to change the font of Hello World to red?
.third { color: red; }
div.third { color:...
Hi,
I have two specs from two different hosts I am using:
(a) Dedicated server with Full duplex 100Mbits internet connection ($140 per month)
(b) Shared Host on a server that has 100Mbits internet connection ($7 per month)
I have tested my application which downloads from other servers and lets users download from my site in turn. I ...
I have a dropdown in a web page with 3830 elements in it. I know, excessive but whatever.
In jquery I get the selected option value using the statement:
$( "#institutionCombo :selected" ).val();
There is a noticeable pause before the selection is found. Once I get that value I insert it into a textbox on the page, so I know how fast. ...
Is c# compiled to machine code, or is it compiled into a platform independent intermediate code?
I am looking at an app that needs to be ported to a single language, and we would like to port it to a portable/fast platform.
...
Hi. I have huge Rails app on development right now, which run VERY slow on -e development. I use Mongrel as web server. Is there any way to speed up a little bit everything? Because i have to wait 3-10 sec. to reload a page. Thanks.
...
This might fall under the category of "you can't", but I thought it might be prudent to at least see if there is something I can do about this.
According to FireBug, the major bottleneck in my page loading times seems to be a gap between the loading of the html and the loading of Google adsense and analytics. Notice in the screenshot b...