speed

Fastest way to resolv 100 million A-records in Python

I have a list with 100 million domain names like www.microsoft.com and would like to resolve the IP-number to www.microsoft.com Running a local pdns server and query localhost using Python adns? ...

How to reduce MySQL query execution time from 90 seconds to less than 5 seconds or even one second

I am using MySQL database. When I execute a query which the main table(20 thousands of rows) is joined with the other 5 tables, it takes 90 seconds to return me the result. I then added indices into each of the criteria(where clause). Then the execution time drops from 90 seconds to 45 seconds and then I tried to select only necessary fi...

increasing upload speed (multipart POST)

I have a phone application and I use multipart POST to upload multiple files. Is there a way to increase the uploading speed ? e.g. can multithreading the upload process increase the upload speed, is there any other strategy? can anyone refer me to any networks research regarding this area? If I switch from multipart POST to opening a d...

Displaying bandwidth speed in a user-friendly format

Hi guys, I'm looking for a string conversion method that will receive an input of KB/s and converts it to the easiest readable format possible. e.g. 1500 b/s = 1.46 Kb/s e.g. 1500 Kb/s = 1.46 Mb/s e.g. 1500 Mb/s = 1.46 Gb/s Thanks ...

How to estimate which server I need for my process?

I built a (set of) program(s) that communicates with another database server. The program both reads and writes large amounts of data. I would like to be able to test which hardware specifications are needed to keep the program running smoothly. Other applications that make use of the other database server must respond smoothly as well...

Will combining javascript files help speed up the website in IE8?

Hi All, PageSpeed and Yslow suggest that to combine javascripts file to reduce HTTPRequest. But this is becuase (I think) pre ie8 browser has no more than 2 serverhost connection. But nowaday, browser has 6 serverhost connections, which means it has download javascripts in parrallel. So let say we have 1MB of javascript, should we brea...

How do I speed up JTable built in table sorting?

I have a JTable with a custom TableModel that extends AbstractTableModel. I have also used the built in table sorting by calling: table.setAutoCreateRowSorter(true); The model also return the right class of the data for each column from the getColumnClass() call, which from what I read should ensure the fastest sorting being done. W...

How to use index efficienty in mysql query

Hi: My db is running on mysql v5.x. I have a table T1 with 5 columns and column C1 is the primary key. C1 is of type varchar(20). It contains about 2000 rows with values like: fxg axt3 tru56 and so on.. Now my application's job is to read input data and find if the input data has a starting pattern similar to that found in column C1...

measuring speed of a system call

I am trying to optimize our gettimeofday() system call on Redhat Linux. By their documentation it can be speed by running the call in the user land using virtual dynamic shared object (VDSO). I was curious how can I mesure the speed of the call in the first place? I would like to make the change and then compare it against my previous r...

Cookies: More but smaller or less but bigger?

Regarding web optimization, load-time, speed performance and assuming data size to be equal: Is it faster to have more cookies but smaller, or less cookies but bigger? For the technically inclined: would it be more efficient to concat values separated by a known delimiter resulting in a larger cookie size, or to have smaller cookies co...

Unix - Problems with Game Speed After Transfer

I created a Java game application in Eclipse yesterday. I transferred the files over to my school Unix account with Filezilla. Today, I'm in the school lab testing the game inside my unix account. Here's the problem: everything ran fast and fine when I was on my laptop and in Eclipse. Now: 1) The frame rate is about 1 per second. Even ...

How much faster is NUnit compared to MSTest

Roy Osherove, author of The Art Of Unit Testing, has commented on a blog that of the many things NUnit supposedly does better, it being much faster is one of them. My question is how much faster though, if at all? Are we talking an order of magnitude? 10%? 50%? I'm asking this because for the moment I can't compare the two. I am tryin...

approaches to speed up scientific computations on server accessible by internet users

Hi Experts, I'm interested in any conventional wisdom how to approach the following problem. Note that I'm a hardware guy, so be careful using industry knowledge/terminology/acronyms. I'm providing an online application that includes very complex math computations, such as fast-Fourier transforms, that involve nested for-loops and very...

Kindly review the python code to boost its performance

Hello, I'm doing an Information Retrieval task. I built a simple searchengine. The InvertedIndex is a python dictionary object which is serialized (pickled in python terminology) to a file. Size of this file is InvertedIndex is just 6.5MB. So, my Code just unpickles it and searches it for query & ranks the matching documents according ...

How to set Cache control for external cloud files

Hey Guys, I was bent on improving my page speed factors and yesterday I got some cloud space on rackspacecloud. Now before this i was serving static content from a cookieless domain with proper cache control through htaccess. Now after I moved on to cloud my htaccess does not control the cloud files. There is a TTL parameter on rackspa...

How do I benchmark a web page, including all images, scripts, stylesheets etc.

I've tried using a couple of tools (apache bench, html_load) but they only request a single file. I'm testing out bundling strategies and so I need the tool to also download any stylesheets, scripts etc. included in the original html file. I.e. exactly what a browser would load. ...

How slow is too slow for unit tests?

Michael Feathers, in Working Effectively With Legacy Code, on pages 13-14 mentions: A unit test that takes 1/10th of a second to run is a slow unit test... If [unit tests] don't run fast, they aren't unit tests. I can understand why 1/10th a second is too slow if one has 30,000 tests, as it would take close to an hour to run....

Speed of finite state machines - OO vs procedural

Hey all, I am designing a program that will accept from input a series of tokens and feed them to a finite state machine which I have designed. I have designed a test finite state machine in object-oriented style, with structs for the machine itself and transitions, etc. but the application I am writing is one where speed is very importa...

How to speedup & make the cells smooth scrolling in iPhone?

Hi, i did a text rendering program using UIView and UITableViewController. What i did is before going drawRect method, i just calculate all of the cells height as well as each text start & height,width. So that, i can estimate the cell height approximately and then i draw the text. I did this for both portrait & landscape mode. My progr...

A-sync Speed over Gigabit LAN Ethernet File Transfer

I have a strange problem with transferring files between 2 computers connected to each other through an ethernet cable. Both PCs have on-board gigabit ethernet ports. Aside from the different hardwares, the softwares (especially network settings) are configured almost the same, with Windows 7 x64 etc. Tests have been taken with and witho...