performance

WPF 3D video memory efficiency

Ill try to explain my situation as best as I can, sorry if it is not too clear... I have a Viewport3D that contains some large 3d rectangles that are like big crystals. When the user click on one of the crystals, I add a new material to the crystal in the spot the use clicked using an ImageBrush. I then iterate over a list of bitmaps (...

What variable types I should NOT use in iPhone code?

Can't find it now, but I recall I should avoid using double variables in iPhone coding for (poor) performance reasons? Is this true? Are there any other known problems with some variable types? ...

java cpu-intensive app stalls / hangs when increasing nr of workers. Where is the bottleneck, and how to deduce/ moitor it on linux/ubuntu server

I'm running a nightly cpu-intensitive java-application on a Ec2-server (c1.xlarge) which has 8 cores, 7,5 GB RAM (running Linux / Ubuntu 9.10 Karmic 64 bit) The appplication is architected in such a way that a variable number of workers are constructed (each in their own thread) and fetch messages from a queue to process them. Throug...

How to hibernate .net application to reduce launch time?

Hello, At the moment due to using some thirdparty components (which uses strongly reflection) our application is taking about 3 minutes to load on slow machines for our client. I was wondering if there's a way to 'hibernate' .net application so that when launching again the state from the previous launch would be directly copied to mem...

does connections count matter?

We have an application that uses NHibernate to connect to our database on SQL Server.We use connection pooling and session per request approach to execute our queries over SQL Server. We used SQL Server Activity Monitor to monitor connections count and noticed there was 25-30 connections involved whenever a user logged in to system. So h...

Best OS to deploy a low latency Java application?

We have a low latency trading system (feed handlers, analytics, order entry) written in Java. It uses TCP and UDP extensively, it does not use Infiniband or other non-standard networking. Can anyone comment on the tradeoffs of various OSes or OS configurations to deploy this system? While throughput is obviously important to keep up wi...

How is that instance pooling with EJBs can improve performance?

How is that instance pooling with EJBs can improve performance? Wouldn't you be able to accomplish the same performance just with threads like a java servlet? Or perhaps instance pooling with EJBs happens for another reason? ...

To Save a loop or to go with 2 methods - Convention vs. Performance

So everyone who cares about best practices in OOP and keeping code clean and in OOP knows that methods shouldn't be doing more than one thing. Methods are discrete units that do one thing and get out. But here's a situation though where you could save some processing and improve performance if you were to combine 2 methods which are re...

Improving performance with a Crystal Report containing a subreport?

Does anybody know how to improve the performance of a Crystal Report that has a subreport? The subreport uses ADO.NET objects...and takes FOREVER to generate. ...

At what point is it worth reusing arrays in Java?

How big does a buffer need to be in Java before it's worth reusing? Or, put another way: I can repeatedly allocate, use, and discard byte[] objects OR run a pool to keep and reuse them. I might allocate a lot of small buffers that get discarded often, or a few big ones that's don't. At what size is is cheaper to pool them than to real...

To aggregate or not to aggregate, that is the database schema design question

If you're doing min/max/avg queries, do you prefer to use aggregation tables or simply query across a range of rows in the raw table? This is obviously a very open-ended question and there's no one right answer, so I'm just looking for people's general suggestions. Assume that the raw data table consists of a timestamp, a numeric foreig...

Is it really having an impact to use ' instead of " in PHP

A web site, 5 human years in code (5 developers, approx one year), 10 of thousands of hits every day. Is it really going to have an impact if we change all " to ' where possible? ...

Is it better to use an in-memory database (e.g. SQLite) than to keep everything in HashMap or other data structures?

I need to have very fast access to a big Map - several millions of entries. Is it worth using an SQLite in-memory database to keep that map as opposed to just having that HashMap in memory? ...

How to test the performance of an Android application?

How can I test an application for performance in Android? What is the support provided in Android and how do I use it? ...

Primary key as INT and global key as GUID for improved performance.

Hello. While deciding upon the keys for a table, is it good to have an INT primary key (autoincrement) for the table and a GUID (in addition to the INT) for the scope of the database? Given that there will be more table DML statements it will be faster to operate on INT whereas if any pan-database DMLs statements are to be executed, GUID...

Limiting concurrent threads equal to number of processors?

Are there any benefits to limiting the number of concurrent threads doing a given task to equal the number of processors on the host system? Or better to simply trust libraries such as .NET's ThreadPool to do the right thing ... even if there are 25 different concurrent threads happening at any one given moment? ...

Static images in drawRect or in reuse cell method?

Hi, I was testing adding a static image in an reused cell vs drawing it in the cell with drawrect method. I tested both methods and it seems drawing the image every time the cell gets in display is faster then adding the image to an reused cell. Anyone knows, how this is possible? i have two more static images, should i draw these in d...

Ruby C extensions, Use Ruby data types or native C for performance?

I'm currently writing a C extension for ruby as part of a project of mine. The extension is to implement an algorithm I have already working in ruby in C for performance reasons. The question I pose though is whether I should use ruby's own data types in the C code or convert them to C's native types for performance reasons? Would such...

Ruby on Rails migrations are very slow

I have SQLite3 database, which is populated with some large set of data. I use migration for that. 3 tables will have following count of records: Table_1 will have about 10 records each record of Table_1 will be associated with ~100 records in Table_2 each record of Table_2 will be associated with ~2000 records in Table_3 The...

Passing objects as arguments in VBScript

I'm working on a project to capture various disk performance metrics using VBScript and would like to use a sub procedure with an object as an argument. In the following code samples the object I'm referring to is objitem.AvgDiskQueueLength which will provide a value for the disk queue length. I haven't found a way to make it work since ...