performance

Do Ruby on Rails sites have performance issues?

Are Ruby on Rails site usually slower than java or .net sites? (This is assuming developers are not abusing the technology.) A lot of Ruby sites I have seen have performance issues. ...

Performance of a SETOF returning function which returns results of another SETOF function?

I have written a function that takes two arguments and returns a SETOF result. CREATE FUNCTION foo(parentId bigint, childId bigint) RETURNS SETOF bar AS ... I would like to write two "wrappers" for this function that make it simpler to call: CREATE FUNCTION foo_parent(parentId bigint) RETURNS SETOF bar AS ... BEGIN RETURN ...

Slow Visual Studio 2008 performance from IDE when viewing all data sources

We are using Visual Studio 2008 for our development of our core product. We have a C# solution with roughly 5 projects and 250 data sources. It takes anywhere from 15-25 seconds any time I do either Data > Show Data Sources, or if I click a (DataBindings) control property drop-down to bind a value of a control to a Data Source. Aside ...

.NET Binary File Read Performance

I have a very large set of binary files where several thousand raw frames of video are being sequentially read and processed, and I’m now looking to optimize it as it appears to be more CPU-bound than I/O-bound. The frames are currently being read in this manner, and I suspect this is the biggest culprit: private byte[] frameBuf; Bin...

Performance considerations when using MySQL VIEWs

I was considering using MySQL views to provide an abstraction when pulling data from the DB. As I was looking for material on this, I came across this article, which ends with: MySQL has long way to go getting queries with VIEWs properly optimized. The article is from 2007. Is this still applicable? Eg: Has MySQL solved these iss...

I want to benchmark solaris and linux with java

Can anyone point me out to a project out there that I can download and run it and it would load / stress test itself and then provide me with reports? I want the project to be as big as it can and to involve as many components in java as it can, also i need it free... or to some very good already made results over the web that I can alre...

Memory footprint benefits of using CoreData vs in-memory not evident/obvious - opinions?

I have an app that currently holds all state in memory. It fetches a bunch of information from a server as JSON and then holds on to the JSON values in memory. Each JSONObject can be ~300 bytes and there can be thousands of such objects. I use this data simply to populate UITableViews. In order to better handle large amounts of aata, I ...

Hoto measure the performance/resource status of a Silverlight application internally at runtime?

Hi, I want to measure the resource consumption of my silverlight application at runtime. I do NOT want to use an external profiler, since I want to evaluate the overall application performance (esp. regarding CPU consumption), to show/hide functionality depending on the current performance status of the application. Is there a way to me...

How to check if Silverlight is ready for an user initiated OpenFileDialog?

Hi, there is the security issue that "Dialogs must be user-initiated." in Silverlight (see question 1355078). There is "a timer in silverlight" and a "UserInitated" flag that is used to do the check (see silverlight forums). That's why you should not set break points before code involved in the procedure. The problem now is, if SL is r...

JavaScript loop performance - Why is to decrement the iterator toward 0 faster than incrementing

In his book Even Faster Web Sites Steve Sounders writes that a simple way to improve the performance of a loop is to decrement the iterator toward 0 rather than incrementing toward the total length (actually the chapter was written by Nicholas C. Zakas). This change can result in savings of up to 50% off the original execution time, depe...

FrameLayout + bg-image vs. ImageView

Simple question really: for very simple graphics such as dividers, is it cheaper in terms of layouting / rendering costs to use a FrameLayout and set the image as a background instead of using ImageView? The intuition was that FrameLayout is the simplest of all views (in terms of features), and ImageView does things like scaling and cro...

ViewStub vs. View.GONE

As far as I undestand, neither a ViewStub nor a View that's GONE participate in the measure and layout passes (or rendering anyway). Is there a difference in rendering performance? What's the best practice about when to use which? ...

should I use LIKE to query tables with 4 million rows

I am designing a search form, and I am wondering whether should I give the possibility to search by using LIKE %search_string% for a table that is going to have up to 4 million rows ...

Will enabling XDebug on a production server make PHP slower ?

The title pretty much says it all...is it a bad idea ? I'd like to have the enhanced debug messages that XDebug provides on the server. [edit] Just to make things clear. I'm aware there are security risks involved. Perhaps I should complement my question and give more precise reasons why I would want to do this. Our production server h...

Unused Database Table Effects

In our SQL Server Database we have at least 25-35 lookup / empty tables that are never used. Is there any negative effect for keeping them in our database (performance, storage etc) Basically, would deleteing them have any positive impact on queries etc. ...

Improving a SerialPort Connection

Pretty simple question this time around. I have an application that communicates with another copy of the application on another machines. One application sends a pretty constant stream of data, the other receives it. The code to send data looks like this (where serialPort is an instance of the System.IO.Ports.SerialPorts class in C# .N...

Zend Framework: Need advice on implementing Zend_Paginator_Adapter count()

i want to implement my own Zend_Paginator_Adapter so i implemented Zend_Paginator_Adapter_Interface (docs). i am now at implementing count(). am i right to say that if my query is SELECT * FROM Posts LIMIT ... // where limit is for pagination purposes i need to get the total number of rows in the table (to return in count())? SELEC...

What is the most appropriate WPF control for showing a (color) log?

In WinForms I would use the rich text box to show the live output from msbuild. The performance wasn't that great with large amounts of text. Does WPF have a better performing control? Any techniques to make it perform well? Thanks in advance! ...

Why does the performance drops that much when my Erlang TCP proxy gets many concurrent requests?

For learning purposes I've written a simple TCP proxy in Erlang. It works but I experience an odd performance fall-off when I use ab (Apache Bench) to make many concurrent requests. It's not the performance fall-off per se that makes me wonder but the scale of the fall-off. The backend is nginx as a web server. My proxy sits inbetween ab...

WPF render slower with more processors

I'm really at a loss on this one. I have an expander that contains an ItemsControl that looks something like this; <ItemsControl ItemsSource="{Binding Source={StaticResource SomeItems}}"> <ItemsControl.ItemTemplate> <DataTemplate> <StackPanel> <ContentControl Content="{Bindi...