performance

Performance testing of Windows Forms application

We have a very old windows forms application that communicates with the server using .net remoting. Can anyone recommend a method or a tool to performance test this. ...

Is SqlDataReader.GetValue query dependant ?

Hi All, In my code I have a Query like this SELECT id,name FROM people I retrieve datas using a sqldatareader. If I change my query for SELECT id,name FROM people WHERE NOT EXISTS( SELECT * FROM people_died WHERE people_died.id = people.id ) I can see with dotTrace that the calls to getvalue takes longer with the second query, so...

Enumerating ListView.SelectedIndices is slow on huge ListView

I have a ListView with VirtualMode = true and huge number of items (for now ~800,000). My goal is to sum a field in all selected items, each time selected items changed. The problem is that enumerating all selected items takes long time when huge number of items are selected. for example, it takes 1 second for enumerate 800,000 selecte...

Why is using an object property in LINQ slower than using a primitive?

Why does this LINQ query (Id is a property of type long in the Structure object): IList<Structure> theStructures = new List<Structure>(); public int GetChildrenSlow(Structure aStructure){ IEnumerable<Structure> childrenQuery = from structure in theStructures where structure.ParentStru...

Performance of built-in .NET collection sorters

There was a question asked about how to sort a List. There were several methods given from the basic List.Sort() to List.OrderBy(). The most laughable was a roll-your-own-SelectionSort. I promptly voted that down, but it made me think; wouldn't Linq's OrderBy(), applied to a list, do the same thing? myList.OrderBy(x=>x.Property).ToList()...

Remote start Java CPU Profiler like VisualVM but automated

Is there a way to remote start a CPU profiler (and specify package exclusions) like you can with the VisualVM tool (through I assume JMX). We want to be able to automatically start a server run a stress test with a specific CPU profiler configuration enabled, and then export the results. Also is there any library that would allow you t...

Javascript performance with creating large tables.

I have a database table. I want the user to be able to modify the values in that table, through a web UI. As such, I have my back-end retrieve the table's values, pass them to my Javascript through JSON. My Javascript builds objects representing table rows, and then uses prototype templates to generate HTML table rows, from the data. t...

Threads vs Processes

Possible Duplicate: What are the thread limitations when working on Linux compared to processes for network/IO-bound apps? What is meant by context switches in threads or processes ? Also which is better : Threads or Processes ? I mean which is more space efficient and which is more time efficient ? ...

Disadvantages of dynamically including CSS/JS files?

What are the specific disadvantages (if any) of dynamically including the CSS and JS files for a website? By dynamically, I mean, using the document.write() method generate and tags. I'd like to use this technique on a very large, high-traffic website, since it allows me to easily manage which files are downloaded for which site sect...

Is it possible to design a dynamic language without significant performance loss?

Is it possible to design something like Ruby or Clojure without the significant performance loss in many situations compared with C/Java? Does hardware design play a role? Edit: With significant I mean in an order of magnitudes, not just ten procent Edit: I suspect that delnan is correct with me meaning dynamic languages so I changed t...

counterintuitive slow Python regex search performance when providing a start of a String char

I've written a Python utility to scan log files for known error patterns. I was trying to speed up the search by providing the regex engine with additional pattern info. For example, not only that I'm looking for lines with "gold", I require that such line must start with an underscore, so: "^_.*gold" instead of "gold". As 99% of the lin...

ASP.NET Website vs ASP.NET WebApp: What's the performance difference?

The Difference between an ASP.NET Website and ASP.NET Web Application has been asked many times. However, I couldn't find an answer to my question as to whether there is any real performance difference in using one over the other. Further, it is my understanding that a website project is dynamically compiled; does that means every time a...

selecting hash values by value property in ruby

In Ruby, I have a hash of objects. Each object has a type and a value. I am trying to design an efficient function that can get the average of the values of all of objects of a certain type within the hash. Here is an example of how this is currently implemented: #the hash is composed of a number of objects of class Robot (example name...

What's the better approach in changing the model's property value in controller

Which approach is more preferrable when changing just a single value in model? Aesthetically-speaking and performance-wise. Looks clean(albeit with the overhead of pushing the entire model again to the View): ModelState.Remove("Name"); guestResponse.Name = "John"; return View(guestResponse); Looks performant: ModelState["Name"] = ne...

How is CPU usage calculated?

I hope this is the right place to ask this question, as I think it is related to algorithms and performance. On my desktop, I have a little widget that tells me my current CPU usage. It also shows the usage for each of my two cores. I always wondered, how does the CPU calculate how much of its processing power is being used? Also, if ...

Saving a trie to disk

Hello. This sounds like a simple question, but I don't know how to search for its answer. I have a trie implementation in C# that will store about 80K words from a dictionary file. It takes quite a while to load all these words (more than 5 mins). I was wondering, what is the best way to "persist" those data so I don't have to reload al...

ASP.Net website perfomance issue

Hi Friends, I have developed a website in asp.net framework 2 . This website is being hosted in two different servers without any change in code. My issue is about the performance of these 2 sites. One website is taking much time for inserting datas to the DB (SQL server 2005). 2 websites are having different DB server. Can anybody he...

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...

mysql content fields idea :)

I try new table structure for our new eccomemrce website like Wordpress tables. But I am not sure whether it's really good idea for performance. We've just 2 tables for products and other contents (such us pages, attachments, or even orders). Their ordinary fields kept first table (such as ID, title,date), but their special fields kept ...

IIS7 integrated pipeline mode slower than classic

Hi, we are running a complex 64-bit ASP.NET 2.0 application on W2008 R2 Standard and stress tests done with VS2008 Team System have indicated that integrated pipeline mode is 30% slower than classic mode. We have compared the application traces extensively and it appears that integrated mode is uniformly slower than classic. That is, t...