performance

Is there a way to reduce startup time of a console Java application?

I noticed that the startup time of a minimal console application in Java is slightly more than 100 ms on my machine compared to 1 ms of an equivalent C application. Although it is not a problem in most cases I would like to find out if there is a way to reduce this time because I need to write an application that will be executed many ti...

How does color depth and/or compression level of images affect UI performance?

To what extend do color depth and compression level of the original jpg and/or png images used as drawables have an effect on the app's UI performance, given the fact that all images are converted to bitmaps internally anyway. Especially considering i.e. images in list views for example. Same question goes for png vs. xml shapes as dra...

Saving a Dictionary<String, Int32> in C# - Serialization?

Good morning, I am writing a C# application that needs to read about 130,000 (String, Int32) pairs at startup to a Dictionary. The pairs are stored in a .txt file, and are thus easily modifiable by anyone, which is something dangerous in the context. I would like to ask if there is a way to save this dictionary so that the information c...

how to force a stored procedure be pre-cached and stay in memory?

Stored procedures are compiled on first use. There are options to clear cache: DBCC FREEPROCCACHE DBCC DROPCLEANBUFFERS --To Verify whether the cache is emptied --DBCC PROCCACHE or to recompile or to reduce recompilations. But is it possible to force frequently used stored procedures' execution plans be pre-cached and stay in...

Question about my logic for Rhythm game/Iphone Cocos2d

Ok I am a complete newbie at game design and have a question. Ive been working on a rhythm game for the iphone for the past few months now. The game runs well and is getting closer to being finished, however, being my first major project I feel like the underlying way I am doing it is very flawed. We are shooting for 60 fps and it run...

who is responsible for server monitoring ?

who is responsible for server monitoring ? development team ? development team leader ? Project manager ? dba ? infrastructure team ? who is responsible when application server is running slow or not responding ? what tools are available for tomcat monitoring ? ...

How to interpret results from Allocations and VM Tracker in Instruments?

I am tracking a very tough memory leak (or more likely abandoned memory) situation. I do the following: 1) start my application 2) get to a point where the application will show the leak 3) start instruments using the 'allocations' choice 4) attach to my process and start recording 5) take an initial heapshot 6) take an initial snapsh...

Delete All / Bulk Insert

First off let me say I am running on SQL Server 2005 so I don't have access to MERGE. I have a table with ~150k rows that I am updating daily from a text file. As rows fall out of the text file I need to delete them from the database and if they change or are new I need to update/insert accordingly. After some testing I've found that ...

Linux version of Windows "nonpaged pool" does such a thing exist?

I have been working with an Windows application which reads from the 'nonpaged pool' to increase performance. In this case the nonpaged pool is the area of memory where the network drivers write data as they grab it off the wire. How does Linux handle memory which network drivers (or other drivers) which require high speed exclusive ac...

jQuery Image Slider - Performance issues

Hello I'm currently building a simple "jQuery Image Slider" but it does not work as i hoped. It's incredible slow and unresponsive, and the last image does not do anything. URL: http://fusionmedia.dk/jquery/ What is the problem? Thanks in advance ...

Are .NET try / catch cheap?

Possible Duplicate: Performance Cost Of 'try' I stumbled upon this remark in "Best Practices for Handling Exceptions" at MSDN: " using exception handling is better because less code is executed in the normal case" in the context of whether one should check for the state of an object before calling a method or just call the m...

What is Azul "Zing"?

What is Azul "Zing" platform? Visiting Azul site turned into a marketing horror - and after wading through every little bit of it, I still don't have a clue. Does anyone have any experience with it? What are the requirement for your application to be "Zing"-ed? (Zing-able?) If, for example, I have an application that loads an object gra...

Do disabled Drupal modules affect performance?

Does having Drupal modules installed but not enabled have any effect on the performance of a Drupal site? To put it another way.. Would removing disabled modules from a Drupal site have a positive affect on performance? ...

C# Application performance deterioration due to garbage collection?

My application's performance deteriorate as it continues to run through the day. I suspect it is garbage collector, how can I verify this? Is there a way to find out which object/function is causing garbage collection overhead? Is there a way to manually perform garbage collection programatically to clear memory of leakages? Thanks, ...

Performance in multithreaded Java application

I want to understand performance in multithreaded environments. For that I have written a small test that I ran on my machine (quad-core Intel, Windows XP, Sun JDK 1.6.0_20), with surprising results. The test is basically a thread-safe counter that is synchronized using either the synchronized keyword or an explicit lock. Here is the co...

Why is the performance of these matrix multiplications so different?

I wrote two matrix classes in Java just to compare the performance of their matrix multiplications. One class (Mat1) stores a double[][] A member where row i of the matrix is A[i]. The other class (Mat2) stores A and T where T is the transpose of A. Let's say we have a square matrix M and we want the product of M.mult(M). Call the produ...

SQL Sorting: server vs. client

Most of the times, when it comes to sort some data, we have two options: Sort on the SQL server -- use ORDER BY clause Sort on client one we get the data from the database When would you use one over the other and why? ...

C# performance and readability with buttons enabling/disabling

Hey all, I've often found myself in front of that kind of code : if(Something > 0) { btnOne.Enabled = true; btnTwo.Enabled = true; btnThree.Enabled = false: } else { btnOne.Enabled = false; btnTwo.Enabled = false; btnThree.Enabled = true: } And I've always wondered if it was better to let it like that, or put ...

multimaps(benchmark) source code in C

I am actually seeking the multiMAPS benchmark source code written in C. It is a benchmark that measures memory bandwidth.. Did somebody heard about it? ...

How much memory is allocated for one Integer object in Java? How to find out this value for any custom object?

What is the proper way to measure how much memory from the heap should be used to create new object of a certain type (let's talk about Integers to keep it simple)? Can this value be calculated without experiment? What are the rules in that case? Are these rules strictly specified somewhere or they can vary from jvm to jvm? ...