performance

Array Performance very similar to LinkedList - What gives!?

So the title is somewhat misleading... I'll keep this simple: I'm comparing these two data structures: An array, whereby it starts at size 1, and for each subsequent addition, there is a realloc() call to expand the memory, and then append the new (malloced) element to the n-1 position. A linked list, whereby I keep track of the head, ...

Collecting Application Metrics in Java (optionally .Net)

I want to be able to expose various time and count based metrics dynamically from my applications. Perf4j works out pretty well for the time ones but does not allow for count in a straightforward way that I'm aware of. for instance I can do StopWatch dbWriteTime = new Log4JStopWatch("ServiceName:DBWrite"); dbWriteTime.start(); ... exec...

WebLogic Diagnostic Framework (WLDF): Alternatives?

Hi, WLDF (WebLogic Diagnostic Framework) allows many performance-related analyses - in particular resource demands tracking and tracing across classes and methods. In that sense, it is similar to a profiler - however, it works on the server side, and is bound to the particular product/vendor. Are there any other products (maybe even o...

Why does a database query only go slow in the application?

I have a webpage that takes 10 minutes to run one query against a database, but the same query returns in less than a second when run from SQL Server Management Studio. The webpage is just firing SQL at the database that is executing a stored procedure, which in turn is performing a pretty simple select over four tables. Again the code...

Performace gains of searching with FTS over it with LIKE on indexed colum(s)?

Subquestioning "full-text search sql server 2005" Would the use of FTS (Full Text Search) be faster in comparison with searches using tsql LIKE on indexed column(s)? Why? And how much? ...

Canvas versus SVG animations (effects[filters] and performance)

I am developing an application that should run equally smoothly on a web browser (IE support completely optional) and on iPhones and have tested various libraries for days, including: jQuery SVG, CAKE (Canvas Animation Kit Experiment), Burst Engine, Processing.js and Raphael, and have yet to find the right one for this experiment. The ...

Performance of C++ applications in VS2010 and VS2008

I'm working on a real-time application (lets call it App1) which is communicating with another application (App2). I used VS2008 and both applications are in C++. Recently I converted the App1 project to VS2010 and right after that it started crashing (I use VS2010 Premium Ver. 10.0.30319.1). Crash dump shows that right before a crash, A...

Website Response Times - General Performance Rules

I am currently in the process of performance tuning a Web Application and have been doing some research into what is considered 'Good' performance. I know this depends often on the application being built, target audience, plus many other factors, but wondered if people follow a general set of rules. There is always the risk with tunin...

How to handle very frequent updates to a Lucene index

I am trying to prototype an indexing/search application which uses very volatile indexing data sources (forums, social networks etc), here are some of the performance requirements, Very fast turn-around time (by this I mean that any new data (such as a new message on a forum) should be available in the search results very soon (less th...

XPerfViewer with the new Storport Provider?

Does anyone know of a way to parse out disk latency information from the new Storport provider with XPerfViewer (or any other tool)? I used the following article to capture a trace: http://blogs.msdn.com/b/ntdebugging/archive/2010/04/22/etw-storport.aspx This does give me a series of events in .etl format that XPerfViewer will plot a...

Improve performance of SHA-1 ComputeHash

I'm using the following code to do a checksum of a file which works fine. But when I generate a hash for a large file, say 2 GB, it is quite slow. How can I improve the performance of this code? fs = new FileStream(txtFile.Text, FileMode.Open); formatted = string.Empty; using (SHA1Managed sha1 = new SHA1Managed()) ...

Handle a big number of demands with one page/service or segment in many pages

Hi, What is better for performance during hight clients demands, handle the response with a unique webpage or services or segment the demands in other pages and handle from there with same response ? This last solution create duplicates and increment the amount of files in the global solution. thanks. ...

VsInstr performance profiling

I have a problem with building performance profile for my .net web app See my steps below: Setup global variables VSPerfCLREnv /traceon VSPerfCLREnv /globaltranceon Instrument assemblies vsinstr "path to my assembly" Restart iis iisreset Start profiling VSPerfCmd /start:trace /output:traceoutput.vsp...

Extra column ruins MySQL performance

I have a warehouse table that looks like this: CREATE TABLE Warehouse ( id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, eventId BIGINT(20) UNSIGNED NOT NULL, groupId BIGINT(20) NOT NULL, activityId BIGINT(20) UNSIGNED NOT NULL, ... many more ids, "txtProperty1" VARCHAR(255), "txtProperty2" VARCHAR(255), "txtProperty3" VA...

Socket.SendAsync taking several seconds to complete.

I'm trying to optimize a tcp socket wrapper which is struggling with lots of inbound connections. I'm testing it within a basic chat server and a small client app to send clients to it. Both apps are on a separate W2k3 server connected by a gigabit switch. By trial and error I've refined my testing to 10 clients connecting at 100ms in...

openX performance - CDN?

I was wondering whether there are any best practices or if you have any good tips on improving performance of a self hosted openX instance. Apart from the usual suspects (e.g. tuning apache, php and mySQL), using memcached for caching etc. Is there any room for a CDN or other proxy cache in front of openX? (my guess is no due to the dy...

Mercurial - HTTPS or SSH?

I have switched our internal codebase to use Mercurial, with a hosted remote repository. I've read that using Mercurial over SSH instead of HTTPS is faster because the data is compressed before it is sent. But... compared to HTTPS, it's quite a pain to set up, especially on Windows. For those of you who have used both regularly on lar...

In what situation can CGI be faster than Servlet ?

I had an argument today with one of my teacher where he was saying CGI was always slower than Servlet. I told him that performance was subjective and in some situation CGI could perform better than Servlet. He insisted on getting example of when CGI could be faster than Servlet. I just want to know what would be the most solid thing I co...

How to diagnose reason for slow access to sqlite database?

As I have stated in this question some time ago, I am having performance problems when accessing an sqlite database from Python. To make that clear once more, the identical code runs more than 20 times faster using apsw. I recently installed a different version of Python in parallel and installed a new version of apsw for that. This vers...

Updating views_24hours, views_7days, views_30days too slow.

Hello, I have table (MyISAM) with columns views_total, views_24h, views_7d, views_30d. views_24h = view for last 24 hours, views_7d = last 7 days etc. All this columns are INT and INDEX because I'm doing sorting by them. Every hour (for 24h), or every day (for 7d, 30d) I'm updating this columns using UPDATE ... JOIN (... UNION ALL ...)...