performance

Measuring Application Performance

Hello All, I was wondering if there is a tool to keep track of application performance. What I have in mind is a tool that will listen for updates and register performance metrics published by an application. i.e. time to serve a request, time a certain operation took to finish. And this tool would then aggregate the data and measure per...

Strategies for performance optimizations on an inherited EJB3 application

I was asked to have a look at a legacy EJB3 application with significant performance problems. The original author is not available anymore so all I've got is the source code and some user comments regarding the unacceptable performance. My personal EJB3 skill are pretty basic, I can read and understand the annotated code but that's all ...

Multithreading not faster than single thread (simple loop test)

I'm experimenting with some multithreading constructions, but somehow it seems that multithreading is not faster than a single thread. I narrowed it down to a very simple test with a nested loop (1000x1000) in which the system only counts. Below I posted the code for both single threading and multithreading and how they are executed. The...

Core Data - get/create NSManagedObject performance

Hi. I'm creating an iphone/ipad app that basically reads XML documents and creates tableviews from objects created based on the xml. The xml represents a 'level' in a filesystem. Its basically a browser. Each time i parse the xml documents i update the filesystem which is mirrored in a core-data sqllite database. For each "File" encou...

Is there a jQuery alternative for building faster web sites

Hi, We are about to commence a redesign of our site and are exploring all options in improving performance. The site is fairly heavy in javascript loaded adverts, therefore we need to be really lean with the javascript we use. Do any of you have any experience of lighter frameworks or more efficient frameworks that I could explore? Or ...

Buffere write becomes slow after CGBitmapContextCreate

I have code something like this... CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); CGContextRef ctx = CGBitmapContextCreate(pixelArray, width, height, 8, 4 * width, colorSpace, kCGImageAlphaNoneSkipLast); CGImageRef createdImage = CGBitmapContextCreateImage (ctx); uiImage = [[UIImage imageWithCGImage:createdImage] retain];...

does order of members of objects of a class have any impact on performance?

May order of members in binary architecture of objects of a class somehow have an impact on performance of applications which use that class? and I'm wondering about how to decide order of members of PODs in case the answer is yes since programmer defines order of members via order of their declaraions ...

list.item(0) vs list[0]

document.getElementsByTagName('a').item(0) and document.getElementsByTagName('a')[0] will return the same result... Is the former faster than the latter, maybe someone knows of test results? ...

SEAM: Effective use of @BypassInterceptors?

I was wondering what advice the community could give me on the use of the @BypassInterceptors annotation when programming with Seam? I've been reading up on increasing Seam application performance, and without fail every article mentions that adding this annotation can increase performance. My question is, where should it be applied? ...

Performance issues when reading a file from HD that dosen't follow computer byte alignments

I have a file format (.STL, stereo lithography, the structure is standard and can not be changed. Not to be confused with standard template library) that uses a 50 byte data structure. Reading from the HD directly leads to wrong data being read as 50 bytes is not a multiple of 4. Out of the entire 50 byte structure, I only need 36 of th...

How slow is too slow for unit tests?

Michael Feathers, in Working Effectively With Legacy Code, on pages 13-14 mentions: A unit test that takes 1/10th of a second to run is a slow unit test... If [unit tests] don't run fast, they aren't unit tests. I can understand why 1/10th a second is too slow if one has 30,000 tests, as it would take close to an hour to run....

How can I quickly fix EBCDIC control characters in large files using Perl?

My apologies if this comes across as a newbie question. I'm not a Perl developer, but am trying to use it within an automation process, and I've hit a snag. The following command runs quickly (a few seconds) on my Linux system (Ubuntu 9.10 x64, Perl 5.10), but is extremely slow on a Windows system (Windows 2003 x86, Strawberry Perl 5.12...

Extract data from large structured file using Java/Python

I have a large text file (~100MB) that need to be parsed to extract information. I would like to find an efficient way of doing it. The file is structured in block: Mon, 01 Jan 2010 01:01:01 Token1 = ValueXYZ Token2 = ValueABC Token3 = ValuePQR ... TokenX = Value123 Mon, 01 Jan 2010 01:02:01 Token1 = ValueXYZ Token2 = Val...

How can I speed up multi-row inserts to SQL server?

I am inserting about 400 rows into a table at a time (SQL Server 2008). I have tried UNION ALL, but that slowed things down considerably. I settled on the following query: INSERT INTO table VALUES (a, b,...),(c, d,...),...(x,y,...); When I make this query through ODBC it takes roughly 400ms (I use C++ and time the single call to sqlE...

JS tween how to improve?

Im trying to make a simple expo tween, it works, but its a bit jittery and FF seems to hang a bit. What can I do to improve it? var distance = (target - x) * dir; x += (distance / 5) * dir; if (dir == 1 && x >= target-1) { return; } if (dir == -1 && x <= target+1) { return; } ...

Insertion speed slowdown as the table grows in mysql

I am trying to get a better understanding about insertion speed and performance patterns in mysql for a custom product. I have two tables to which I keep appending new rows. The two tables are defined as follows: CREATE TABLE events ( added_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, id BINARY(16) NOT NULL, body MEDIUMBLOB, UNIQUE K...

Relative Performance in SQLServer of Substring vs a Right-Left combo

This is a performance based question, not a "I don't understand" or "best practice" question. I have a varchar field in a SQLServer database that is guaranteed to be longer than 7 chars. I need to extract a char(4) field consisting of the 2nd, 3rd, 4th and 5th chars in the varchar. For example if the varchar had the value 1234567890 I ...

Using namespaces API for testing could affect performance and reliability of my Google App Engine application?

As asked here, I'm looking for a clean solution to setup a staging environment for my Google App Engine application. Reading the new spec of Namespaces API, Google suggest that a possible use of this new feature is: Creating Separate Datastore Instances for Testing and Production In case I decide to use Namespaces for testing, could ...

ASP.NET MVC 3 Razor performance

I've made a simple hello world project in asp.net mvc2,3 aspx and 3 razor and benchmarked them. What I see is: asp.net mvc 2 aspx : 4200 request per second asp.net mvc 3 aspx : 3200 request per second asp.net mvc 3 razor : 1700 request per second What's wrong with razor, it's so slow? Update: I've redone the test. All 4 test virtual...

Web performance, inline script questions

can anyone explain on web performance, load external css (combined css) load external javascript (combined javascript) inline css / inline javascript <- will block other resource downloading, recommended to put the javascript before external css how can i put the javascript before external css when i combined the javascript? Is there a ...