Hi.
I've read pretty often, that using try-catch is quite slow compared to normal code.
Now I wonder if the number of caught exceptions affects the performance of the code or not.
So is
try{
...
}
catch(StrangeException e){
...
}
slower than
try{
...
}
catch(StrangeException e){
...
}
catch(MysteriousException e){
...
}
c...
Im working with a few guys on trying to develop an app that requires some thumbnail scrubbing to handle album and tv show / movie art work in a grid view..
Much like iTunes does! But were having some trouble with getting the grid view to match the speed and agility of iTunes.
Anyone have suggestions on what to use in Cocoa UI world to...
We have a .NET 2.0 Remoting server running in Single-Call mode under IIS7. It has two APIs, say:
DoLongRunningCalculation() - has a lot of database requests and can take a long time to execute.
HelloWorld() - just returns "Hello World".
We tried to stress test the remoting server (on a Windows 7 machine) in a worst case scenario by b...
I've been using @atebits's ABTableViewCell for a while. For those who are unfamiliar with it, basically it makes tableview scrolling much faster by drawing all the labels and images, instead of allocating UIKit objects (such as UILabels, UIImageView, etc).
Now, I have pretty big UITableViews and in each cell, there's a small (32x32) use...
I am building an app that scrapes information from web pages. To do that I have chosen to use an html scraper called Jsoup because it's so simple to use. Jsoup is also dependent on Apache Commons Lang libray. (Together they make up a total of 385kB ).
So Jsoup will be used to Download the page and parse it.
My question is if the use of ...
Hi,
Can someone tell me how to write an Android PerformanceTestCase using Intermediates?
I got the code snippet below for my activity and execute it via the adb shell:
adb shell am instrument -w -e perf true org.foo.test/android.test.InstrumentationTestRunner
My code:
public class PerformanceTest extends ActivityInstrumentationTestC...
We are currently developing a servlet that will stream large image files to a client. We are trying to determine how many Jboss nodes we would need in our cluster with an Apache mod_jk load balancer. I know that it takes roughly 5000 milliseconds to serve a single request. I am trying to use the forumula here http://people.apache.org/~mt...
I am serving up access to many mercurial repositories using hgweb, providing them as a collection:
[collections]
/home/me = /home/me/projects
This serves them up at localhost/projects
I have around 30 repositories at that location, in a source tree with a fair number of other, non-mercurial-managed projects.
hgweb is really slow to ...
Does UserControls in asp.net degrades performance.
MasterPage has its own life cycle
Page has its own life cycle and
UserControls has its own life cycle.
UserControls helps to divide work load and are easily maintainable, but does UserControls down grades performance of asp.net application?
...
I am new to web development and am used to extensive use of various data structures in getting things done. I've also heard that having lots of queries is worse than few queries (but that complex queries can be even slower).
I'm wondering whether lots of simple queries would perform better or worse than one complex query that is later p...
It is widely known common sense, that for most algorithms, allocating and deallocating data on the stack is much faster than doing so on the heap. In C++, the difference in the code is like
double foo[n*n]
vs.
double* foo = new int[n*n]
But there are any significant differences, when it comes to accessing and calculating with data ...
I know I can change the way MySQL executes a query by using the FORCE INDEX (abc) keyword. But is there a way to change the execution order?
My query looks like this:
SELECT c.*
FROM table1 a
INNER JOIN table2 b ON a.id = b.table1_id
INNER JOIN table3 c ON b.itemid = c.itemid
WHERE a.itemtype = 1
AND a.busy = 1
AND b.something = 0
...
I want to know what are various methods by which I can monitor which of my procedure, query is taking more time on various components(CPU cycle, scan time etc.) than already set threshold value.
I want it to be logged as well.
Whenever uses my site and calling some procedure. I want to make a log of all procedures crossing my threshold....
Hi,
I'm developing an application that requires me to display many short strings of text in table cells. Currently, I'm using a default table view cell with about 14 UILabels added. Half of these labels contain static text that will not be changed, while the other half contains dynamic data that has to be updated when the table is scrol...
I've seen various suggestions that hard disk speed is a big factor in Visual Studio compilation performance.
There is now a relatively cheap hybrid hard drive available called the Seagate Momentus XT.
This has a 7200 RPM hard disk of 250, 320 or 500GB and a 4GB SLC NAND SSD.
Has anyone tried this in their development machine? Did it ...
Suppose we have a standard has and belongs to many association between products and categories
product_categories table consists of product_id and category_id pairs.
We have list of category_id's and need to select all products that belongs to all these categories.
The best approach that came to my mind is to have multiple EXISTS() in ...
My question is related to a performance issue I'm experiencing using the context module with a large number of menus. The performance issue may be a result of a module I created to import a menu structure from a different CMS into Drupal. I programatically created the menu items using menu_link_save(), passing in the menu_name, link_path...
Hello,
I have a class that modifies data via some extension methods. In order to debug performance, I have created some rough debug code to make multiple calls to the same methods using the same data a number of times. I am finding that it consistently takes a significantly longer time to do the calculations the first time through the...
I have about 3000 different files I need to organize, and retrieve at different times during the game.
I created my own struct of variables.
I was thinking about creating a "Dictionary "
at the beginning of my application, and simply loading all my files before the game starts.
I'm wondering about performance: will a dictionary with ...
An expert in highly optimized code once told me that an important part of his strategy was the availability of extremely high performance timers on the CPU. Does anyone know what those are and how one can access them to test various code optimizations?
While I am interested regardless, I also wanted to ask whether it is possible to acc...