performance

Server halts due to large StringBuilder instance in memory

So, I have this code that grabs a bunch of data from the database, and performs a bunch of calculations on that data. However, this is not what is causing the halt. The halt is coming in when I take all that "final" data that has been prepared, and go to write that into a text file. Each line in the text file is being created from data ...

Why delegates generated dynamically from expressions are slower than hard-coded lambdas ?

I would have expected delegates generated from expression trees to achieve roughly the same performance as hard-coded, static, equivalent anonymous methods. However, it seems that dynamically generated delegates are noticeably slower... Here's a simple test program to illustrate the case. It just accesses 3 properties of an object 10000...

Firebird SQL: Finding bottlenecks / performance analysis

Hi, I am using Firbird 2.5 for some applications. What I miss is a performance analyses tool, e.g. for Visual Studio, which shows what methods / queries have been executed over time. I am thinking of a tool like Apple's Instruments: Is there anything like this? Thanks, Norbert ...

Fastest way to asynchronously execute a method?

hi there, i´m currently dealing with a problem where i have to dispatch hell a lot of functions to another thread to prevent the current function from blocking. now i wonder what the fastest way is to perform this task. currently i´m stuck with ThreadPool.UnsafeQueueUserWorkItem as its slightly faster than the regular QueueUserWorkI...

How to set up Eclipse to run with as much RAM as possible?

Possible Duplicate: Is there a maximum number you can set Xmx to when trying to increase jvm memory? On my x64 Windows with 8GB physical RAM I'd like to increase performance of my Flash Builder (an IDE built on top of Eclipse). This is usually done by adding something like this to eclipse.ini: -Xmx1024m I'd like to use some...

High-Performance UI Framework for .NET

My current task is to develop a software for measurement and testing purposes which will communicate with various devices. Because i have to assume that there will be a high amount of data transferred from the devices that needs to be displayed in some plotting component or similar, the UI framework used should be as fast and responsive ...

IE slowing down after updatepanel partial update

I'm trying to place a user control inside an UpdatePanel. When the control is displayed, typing inside the TextBoxes has a large delay while in IE (6 & 8). FireFow has an excellent performance. Not only typing, but also scrolling etc experience a large delay up to a few secons. The usercontrol(s) contain quite a lot of javascript functi...

Where should I catch exceptions when making use of '"using" keyword in the code?

Which one is better in structure? class Program { static void Main(string[] args) { try { using (Foo f = new Foo()) { //some commands that potentially produce exceptions. } } catch (Exception ex) { Console.WriteLine(ex.Message...

F# FSharpMap vs Dictionary performance

I was wondering how does the F# immutable Map perform against the standard Dictionary. I am writing a count function (for each line lookup increment set) to use on large files with millions of lines and thousands of elements. What about the memory usage? Thanks ...

ASP .net performance analysis of web pages

Hi, I am working in ASP.net 3.5 MVC application. 1) Is there any standard for the response size returned by the web request( Say a good response size is 10k) and if it is more than that we may need to design the web page to return 10K or less. Sometimes when I see a response more than 60K I feel like that page might struggle a lot whe...

performance test asp.net page with login control

I needed to test the performance of my site on a remote server (do not have IIS access). I am also using Visula Web Developer / Studio Professional 2008 (But not team system version). I wanted to test the performance of my login page for multiple concourant logins. I have found 2 tools - WCAT & Apache Bench for this. Can you tell me h...

64 bit integer math and bitwise operation benchmarks

I'm trying to get a feel for the difference in performance between integer multiplication compared to bitwise operations... I have two potential hashing algorithms acting on 64 bit keys, one which uses a single multiply, single right shift, and single mask, the other which involves several shift and mask operations... but I want to try ...

getelementbyid vs index

In my intranet web app there is a table of items which currently uses the id tag to select the row intended, selection is at a rate of 5-10 selections/sec. The method currently used may cause some inconsistencies time to time due to the async nature and it is very hard to sync it correctly. The question is selection by index (via eq tag...

Loop takes forever with large count

This loop takes forever to run as the amount of items in the loop approach anything close to and over 1,000, close to like 10 minutes. This needs to run fast for amounts all the way up to like 30-40 thousand. 'Add all Loan Record Lines Dim loans As List(Of String) = lar.CreateLoanLines() Dim last As Integer = loans.Count - 1 For i = 0 T...

Mysql performance with nested indices

I have a mysql table (articles) with a nested index (blog_id, published), and performs poorly. I see a lot of these in my slow query logs: - Query_time: 23.184007 Lock_time: 0.000063 Rows_sent: 380 Rows_examined: 6341 SELECT id from articles WHERE category_id = 11 AND blog_id IN (13,14,15,16,17,18,19,20,21,22,23,24,26,27,6330,6331,...

python c extension for standard deviation

I'm writing a c extension to calculate he standard deviation. Performance is important because it will be performed over large data sets. I'm having a hard time figuring out how to get the value of pyobject once I get the item from a list. This is my first time writing a c extension for python and any help is appreciated. Apparently ...

Drupal Slowness Trouble Shooting

I have a Drupal site that is running slowly. What are the best ways to trouble shoot the slowness? Each page load takes ~11 seconds. Once the page has been accessed once it is cached and is fine. How do you increase performance for anonymous and logged in users? ...

Regex match take a very long time to execute

Hello, I wrote a regular expression that parses a file path into different group (DRIVE, DIR, FILE, EXTENSION). ^((?<DRIVE>[a-zA-Z]):\\)*((?<DIR>[a-zA-Z0-9_]+(([a-zA-Z0-9_\s_\-\.]*[a-zA-Z0-9_]+)|([a-zA-Z0-9_]+)))\\)*(?<FILE>([a-zA-Z0-9_]+(([a-zA-Z0-9_\s_\-\.]*[a-zA-Z0-9_]+)|([a-zA-Z0-9_]+))\.(?<EXTENSION>[a-zA-Z0-9]{1,6})$)) I made a...

Will domain sharding of content become redundant?

So currently IE7 can only handle 2 simultaneous images from a single domain, hence domain sharding. What does the future hold for domain sharding, will new browsers that can handle more connection render it unneccessary? ...

Python performance: search large list vs sqlite

Lets say I have a database table which consists of three columns: id, field1 and field2. This table may have anywhere between 100 and 100,000 rows in it. I have a python script that should insert 10-1,000 new rows into this table. However, if the new field1 already exists in the table, it should do an UPDATE, not an INSERT. Which of ...