performance

Fast intersection of sets: C++ vs C#

On my machine (Quad core, 8gb ram), running Vista x64 Business, with Visual Studio 2008 SP1, I am trying to intersect two sets of numbers very quickly. I've implemented two approaches in C++, and one in C#. The C# approach is faster so far, I'd like to improve the C++ approach so its faster than C#, which I expect C++ can do. Here is t...

boost serialization vs google protocol buffers?

Does anyone with experience with these libraries have any comment on which one they preferred? Were there any performance differences or difficulties in using? ...

Why are iPhone apps so slow?

Something I've noticed about every iPhone app I've tried is that they all have places where they seem very slow and unresponsive. It's true of the games, the free apps, the pricy, popular, "professional" apps, and even a couple of Apple's built-in apps. They all seem to have places where they take many seconds or even a minute to respond...

.NET CLR Memory\% Time in GC

Hi, I'm testing an app that reads thousands of small objects and sends then back to the client through remoting. Using ProcessExplorer from SysInternals I see the ".NET CLR Memory\% Time in GC" is bigger than 50% under heavy load. Does it mean 50% or even more of the time is being spent on the GC? If so, how can I improve performance...

Are multithreaded apps bound to a single core?

Hi, I'm running a .NET remoting application built using .NET 2.0. It is a console app, although I removed the [STAThread] on Main. The TCP channel I'm using uses a ThreadPool in the background. I've been reported that when running on a dual core box, under heay load, the application never uses more than 50% of the CPU (although I've s...

.net Placeholders & StringBuilders

When we build our web apps we construct alot of HTML dynamically and the output them to placeholders at run time. One reason for this is to control our HTML output to optimise it for SEO and now that we have been doing this for a while its become 'the way we do it'. Generally its when we are looping through results. My question is, Is ...

Image file that is ~11MB size takes a lot of memory when rendered using WPF Image control

When i try to set the Source of WPF Image to a Image file that is ~11MB size and Shot in 14 MeagaPixcel Camera, the memory shoots up to around 170 MB when the image is rendered on the screen and the memory also never comes down after Rendering. If i try to do the same using .Net 2.0 Picturebox control the memory utilized is only .5MB to...

How to reduce processing time on a web form

Hi, I have a webform with quite a few fields (between 15 to 40, based on user options). When user ends filling the form, I block it with jQuery.blockUI, and then on Server Side I process the form, packing it on an xml and call a new page. But transition between pages usually takes about 1 or 2 seconds, and I want to reduce it. It's pos...

PaintComponent Takes a Long Time, Ties up the Swing Event Dispatch Thread

I've customized a JPanel that displays a large, complicated diagram. Depending on the size of the data, it can take a few minutes to render in paintComponent(). I'm looking for a strategy to: draw the component without tying up the event dispatch thread. draw something in the JPanel to let the user know the image is being rendered. pe...

Interpretation of "Remote Performance Monitor" Memory information...

We are having a memory issue with one of our application running under Windows CE 5 (.Net 2.0 SP2). I have started using the .NET Compact Framework Remote Performance Monitor. However, the outcome is not really clear to me. Here are the information I got (at a particular time): GC Heap ________________________________ 5'193'728 JIT H...

How do I accelerate the touchesBegan event firing?

Hello, I have a UIView where I use the touchesbegan event, but I realized that once I put my finger on it, the touchesBegan event takes like 1 or 2 seconds to fire. How can I make this happen faster? thanks!!! ...

Javascript - Fastest way to show and hide lots of list items

As the user pans around a Google Map, a list of of currently visible markers is updated. This list contains up to 1000 items, and it slows down when several hundred li's are shown or hidden all at once. It's less than half a second, but it's getting annoying. An array (newLiList) contains the items which should now be visible. Anothe...

HTTPS on Apache; Will it slow Apache?

Our company runs a website which currently supports only http traffic. We plan to support https traffic too as some of the customers who link to our pages want us to support https traffic. Our website gets moderate amount of traffic, but is expected to increase over time. So my question is this: Is it a good idea to make our website ...

Does a varchar field's declared size have any impact in PostgreSQL?

Is VARCHAR(100) any better than VARCHAR(500) from a performance point of view? What about disk usage? Talking about PostgreSQL today, not some database some time in history. ...

iPhone short animation: video or image sequence?

I have read several post on both matters but I haven't seen anyone comparing so far. Suppose I just want full screen animation without any transparency etc, just a couple of seconds animation (1''-2'') when an app starts. Does anyone know how "video" compares to "sequence of images" (320x480 @ 30) on the iPhone, regarding performance et...

WPF ToolKit DataGrid Performance

I got a DataGrid with 6 column, each column is a RadioButton so that user can select 1 in 6 option. There are about 100 row. I make a custom class with 6 bool datamember, then bind the datagrid with a list of about 100 custom class object. There are 2 problem: The binding time is very slow When I scroll the data grid, sometime the chec...

iPhone performance with Bitmaps

Pretty new to iPhone / objective-C. I have an application that has 15-100 small images (16x16 or 8x8 PNG) on the screen. For this example sake, let's assume that I can create these images using CGContext if I needed to. I would have to assume that iPhone would perform better using that method rather than loading images (PNG's). H...

Are these generation times acceptable for php-mysql? Where can I improve? Where should I improve?

I'm in the process of developing my first major project. It's a light-weight content management system. I have developed all of my own framework for the project. I'm sure that will attract many flames, and a few 'tut-tut's, but it seems to be doing quite well so far. I'm seeing page generation times of anywhere from 5-15 milliseconds. ...

Query Performance with NULL

I would like to know about how NULL values affect query performance in SQL Server 2005. I have a table similar to this (simplified): ID | ImportantData | QuickPickOrder -------------------------- 1 | 'Some Text' | NULL 2 | 'Other Text' | 3 3 | 'abcdefg' | NULL 4 | 'whatever' | 4 5 | 'it is' | 2 6 | 'technically' |...

How performance-hungry are events in Prototype (JavaScript)?

Does anyone know if using custom events in Prototype (using Element.fire and Element.observe ) affects performance? Also would I gain performance if I use global variables instead of events? Thanks! ...