performance

Finding the bottleneck in a OpenGL application on the iphone.

I'm trying to track down the bottleneck in an IPhone OpenGL game I'm writing. The game itself is in 2d, and contains a couple hundred textured sprites, each alpha blended. In terms of textures, I only use a single 512x512 atlas that I bind once, so I don't think its a bandwidth issue (at least not from the upload of textures). I used i...

Monitor IIS 6.0

What good tools can I use to monitor IIS. What is included seems to be not as useful as I'd like. I realize I can add performance counters; those don't tell me very much; it's just a collections of properties that are plugged into a generic graphing tool. I have problems with old legacy applications hanging and various and sundry other ...

In hibernate statistics whats the difference between load and fetch

Im mainly looking at the EntityStatics (http://www.hibernate.org/hib_docs/v3/api/org/hibernate/stat/EntityStatistics.html). I can see a lot of fetch, loads and updates and i cant find anywhere that says what the difference between them are. ...

Performance of ThreadLocal variable

How much is read from ThreadLocal variable slower than from regular field? More concretely is simple object creation faster or slower than access to ThreadLocal variable? I assume that it is fast enough so that having ThreadLocal<MessageDigest> instance is much faster then creating instance of MessageDigest every time. But does that al...

How do I specify the database isolation level to be used, at a high level?

I am using TransactionScopes at a high level to wrap some high level code that makes a number of connections to the database. One of the functions I call is a generic read that is used for read only functions where a read uncommitted isolation level is needed. But in some cases it is used as part of large update operation and a read com...

IronPython memory usage

I'm hosting IronPython in a c#-based WebService to be able to provide custom extension scripts. However, I'm finding that memory usage sharply increases when I do simple load testing by executing the webservice repeatedly in a loop. IronPython-1.1 implemented IDisposable on its objects so that you can dispose of them when they are done....

Performance tips/hints for .NET webservice providing info from sql server

Hi, I have a rather simple web-service which exposes data from sql server. It will be used to synchronize data between 2 different databases (SQL Server and Lotus Notes). We're in the stage of testing the web-service and poll it with 20 req./min., the first 2 minutes it goes OK, but after the second, we're getting an exception, obviousl...

Languages faster than C++

It is said that Blitz++ provides near-Fortran performance. Does Fortran actually tend to be faster than regular C++ for equivalent tasks? What about other HL languages of exceptional runtime performance? I've heard of a few languages suprassing C++ for certain tasks... Objective Caml, Java, D... I guess GC can make much code faster, b...

Maximum number of workable tables in SQL Server And MySQL

I know that in SQL Server, the maximum number of "objects" in a database is a little over 2 billion. Objects contains tables, views, stored procedures, indexes, among other things . I'm not at all worried about going beyond 2 billion objects. However, what I would like to know, is, does SQL Server suffer a performance hit from having a...

Efficient string concatenation in C++

I heard a few people expressing worries about "+" operator in std::string and various workarounds to speed up concatenation. Are any of these really necessary? If so, what is the best way to concatenate strings in C++? ...

What is the CSS Sprite Performance gain for repeat visitors?

I have a site that has a large menu and each item on the menu has an icon. I have been looking into implementing a CSS sprite to speed it up, but I am wondering what the performance gain will be. My site is not open to the public so the users will almost always be repeat, so is it worth implementing or should I just rely on caching? ...

How can I efficiently trim selected characters from middle of a string?

Can anyone think of an efficient way (time wise) to trim a few selected characters from the middle of a string? Best I came up with was: public static string Trim(this string word, IEnumerable<char> selectedChars) { string result = word; foreach (char c in selectedChars) result = result.Replace(c.ToString(), ""); re...

Are SharePoint site templates really less performant than site definitions?

So, it seems in the SharePoint blogosphere that everybody just copies and pastes the same bullet points from other blogs. One bullet point I've seen is that SharePoint site templates are less performant than site definitions because site definitions are stored on the file system. Is that true? It seems odd that site templates would be...

Best C# Profiler?

Recently I used RedGate ANTS profiler which seems pretty good, but the application I tried to profile was crashing due to DivideByException, where as running in inside Visual Studio was fine for both debug and release. Are there other/better C# profilers that you know of? ...

Why is autorelease especially dangerous/expensive for iPhone applications?

I'm looking for a primary source (or a really good explanation) to back up the claim that the use of autorelease is dangerous or overly expensive when writing software for the iPhone. Several developers make this claim, and I have even heard that Apple does not recommend it, but I have not been able to turn up any concrete sources to ba...

How do I improve performance of winforms application in Mono?

I have a remoting application (2 player Magic the Gathering Game) using windows form in C# and I am seeing very poor performance in mono. One thing I can think of that might affect the performance is that I have custom images for button background and form backgrounds(.png). Moreover I heavily use card images (.jpg). Lastly I have stuck...

How can I make my simple .NET LRU cache faster?

UPDATE: Hey guys thanks for the replies. Last night and tonight I tried a few different approaches and came up with one similar to the one laid out below by Jeff (I had even already done what he suggested in his update, and put together my own simple LL implementation for additional gains). Here is the code, at this point it doesn't lo...

Under C# how much of a performance hit is a try, throw and catch block

First of all, a disclaimer: I have experience in other languages, but am still learning the subtleties of C# On to the problem... I am looking at some code, which uses the try/catch blocks in a way that concerns me. When a parsing routine is called, rather than return an error code, the programmer used the following logic catch (Tcl...

SQL Insert Performance Improvement

I am writing an application that logs status updates (GPS locations) from devices to a database. The updates occur at a set interval for each device, which is currently every 3 seconds. I'm using a simple table in SQL Server 08 for storing each update. I've noticed that running the inserts is an area of slow down in my application. I...

Speed/redundancy of selectors in CSS

Does anyone have information on browser selector speeds in CSS? In other words, how different selectors compare to each other (in th same browser). For example, I often see (and write) code like this: #content #elem { ...rules... } But since those elements are unique IDs, I should only need #elem, right? This got me thinking about wh...