speed

Fast forwarding Flash Video

Is it possible to use Actionscript to speed up (or slow down) a video playing? Say, having it play at twice the normal speed? If possible, can you also make it that the sound does not get all squeaky? Some Videoplayers can do that, I was wondering if it is possible to do in Flash. ...

Tips to solve problem #41 of project euler

I'm trying to solve Problem 41of project Euler in Java, by counting the number from 99888888 to 80000000(which took very long time :( ), I got 98765431 as an answer, but I'm getting that answer not correct. Could anyone please tell me the reason of not getting the correct answer and how can I speed my program? ...

How are logical reads calculated ?

I've read the definition of logical reads from: http://msdn.microsoft.com/en-us/library/ms184361.aspx it says: "Number of pages read from the data cache." I have two tables (Row count of table_1 is 141, and table_2 is 16.811), when I run those two queries, it gives the following result. SELECT * FROM Table_1 results Scan count 1, ...

Download bandwidth difference in Operating Systems?

Hello I've recently discovered an interesting thing. I've made my own Speedmeter using Flash CS4 and ActionScript 3.0. The Download side is based on downloading 2 Mp3 noise files. Using the built-in method getBytesLoaded() and a simple math it's easy to calculate actual connection speed. Actual speed is evaluated every second. It works...

sequential strpos() faster than a function with one preg_match?

i need to test if any of the strings 'hello', 'i am', 'dumb' exist in the longer string called $ohreally, if even one of them exists my test is over, and i have the knowledge that neither of the others will occur if one of them has. Under these conditions I am asking for your help on the most efficient way to write this search, strpos(...

Shared Server not supporting gzip.

I have designed a website in ASP and uploaded on readyhosting's windows shared server. I ask them to enable gzip option from IIS web server but they are no supporting. Is there any option to compress files over network? thanks, Rau ...

PHP: Merge full array with empty array or check isset() first?

I have a few functions that should return an array, to have it merged with another array. However, sometimes there's nothing to return. What's the best scenario here? Return an empty array and merge that with the full one OR Return null, store the return in a variable, check that variable and THEN merge it if needed. I'm asking this...

Introducing testers to HTTP and Fiddler?

Hi, We really need to get our testers into using Fiddler to determin page size and site speed as part of their pre release testing process. I have sat with some of them to talk about fiddler but I'm looking for some easy to understand resources for learning Fiddler. More importantly I think it might be ideal if I can find an easy to re...

Is OOP worth using on PHP?

There are many debates on whether Object Oriented Programming is good or not. But, using OOP in Php is slower. Would it be a good trade to use procedural programming and faster speed and OOP with slower speed (since classes have to be initiated every time a page loads and big websites will start to become slow). More importantly, would ...

Can I make this C++ code faster without making it much more complex?

Hi all, here's a problem I've solved from a programming problem website(codechef.com in case anyone doesn't want to see this solution before trying themselves). This solved the problem in about 5.43 seconds with the test data, others have solved this same problem with the same test data in 0.14 seconds but with much more complex code. ...

Why is my sinatra website so slow?

Hi, After asking this question, I started using Sinatra as a way to serve web pages. This evening, a friend of mine and I started to test the speed of the server. The file to log in looks like: require 'rubygems' require 'sinatra' require 'haml' enable :sessions #for cookies! get '/' do haml :index end And the index.haml look...

Who can explain this technique issue happened on Linux

I wrote a program which need to parse a batch of files. But I found that the parsing speed for local files is lower than the one for remote mounted files. Why? All the files are HTMLs, I do some parsing work on them. Average size is less than 1M. ...

Is Matlab faster than Python?

I want to compute magnetic fields of some conductors using the biot-savart-law and I want to use a 1000x1000x1000 matrix. Before I use Matlab, but now I want to use Python. Is Python slower than Matlab? How can I make Python faster? EDIT: Maybe the best way is to compute the big array with c/c++ and then transfering them to python. I w...

Programming to control the Playback speed of Flash Player

I came across a software for Windows called "Enounce" that allows us to dynamically change the playback speed of videos on popular websites like YouTube that uses Flash technology. However, there is no equivalent program for Linux operating system. I would like to know what should be the approach for developing a similar program on Lin...

Simulate low speed connection on local network

Hi, Sometimes I want to manually test my web applications (either desktop applications calling web services or websites or RIA) to see how they behave with low speed internet connection (56 kbps for example). Is it possible to do it through network by simulating lower speed that the real one? If yes, is it also possible to simulate low ...

Do iphone apps in development run more slowly than once they are released?

I am new to developing iPhone apps and have been testing on on the simulator and on my 2nd gen iPod. I am seeing lag times in what I believe is simple code. I know that the simulator will always run faster than the hardware, and I know that when I'm debugging, that the physical iPod has to run the debugging program in the background wh...

Using Skein for File integrity checking.

Hi Id like to know that is it possible to use skein instead of MD5 or SHA1 for file integrity checking? How? Is that really better or faster than SHA1 and MD5?Explain please. ...

What are the biggest factors for disk write speed?

I am doing some performance tests for the amount of time it takes to write X amount of files to a specified location. I will be comparing write speeds: 1) with a custom file system driver installed and loaded, and 2) with the file system driver not installed nor loaded. I want to test this on various machines with various OS's. Also, I ...

How can you speed up the restart of an ASP.NET application?

What can I do to ensure that when an application/app pool restart is triggered, that the application comes back online as fast as possible? Better yet, is there a way to prevent the application restart when the usual triggers occur? Like modifying the web.config, global.asax, or machine.config? ...

Can I speed up my use of Core Graphics to draw moving triangles every 1/10th of a second

I have recently added some Core Graphics elements to my app and it has slowed dramatically, rendering it just about useless. I am not sure if I am just not using Core Graphics efficiently (how do I make it faster?) or if this problem is inherent in the use of Core Graphics. My code is below, after this description: There are speech bubb...