performance

how do I block my rails app from being hit by bots?

I'm not even sure I'm using the right terminology, whether this is actually bots or not. I didn't want to use the word 'spam' because it's not like I have comments or posts that are being created/spammed. It looks more like something is making the same repeated request to my domain, which is what made me think it was some kind of bot. I...

Yahoo's Yslow or Google's "Page speed"

Yahoo's Yslow or Google's "Page speed" which tool should be used? Google is more popular search engine and most of the world care about site ranking in google? So should we use Google's tool ...

Are there differences between running .NET app with 3.5 requirement on machine with or without SP1?

I have an application which requires 3.5 (not SP1.) My understanding is that SP1 is an additive service pack. Therefore, installing SP1 on a machine would not affect my application in any way besides performance. As far as I can tell from the sources listed below, SP1 is mostly about new features, and significant performance improveme...

Drupal: Getting user name on user account page without breaking performance

I have multiple blocks shown on the user profile page, user/uid On each of them, I need to print the user name. I've been doing a $user = user_load(arg(1)); print $user->name; on each block. Since there is no caching, as you can image the performance is HORRIBLE. Is there either a way to get the user name more efficiently or to cache ...

Scalable and performant way to run calculations against a database

A multitennant database for use by telsales agents, a table contains the prospect leads to call. One record is displayed to the agent at a time for him to call, after the call the agent updates the record with a coded call outcome taken from the outcome table. In this table some outcomes have a recycle time, after which the record should...

Any recommended java profiling tutorial?

Is there any recommended java application profiling tutorial? I am now using jProfiler and eclipse TPTP with my profiling. However, although equipped with wonderful weapons, as a newbie in java profiling, I am still missing the general theory and skill in pinpointing the bottleneck. So would you please provide me with some recommended tu...

Why does my performance slow to a crawl I move methods into a base class?

I'm writing different implementations of immutable binary trees in C#, and I wanted my trees to inherit some common methods from a base class. Unfortunately, classes which derive from the base class are abysmally slow. Non-derived classes perform adequately. Here are two nearly identical implementations of an AVL tree to demonstrate: ...

Python vs Bash - In which kind of tasks each one outruns the other performance-wise ?

Obviously Python is more user friendly, a quick search on google shows many results that say that, as Python is byte-compiled is usually faster. I even found this that claims that you can see an improvement of over 2000% on dictionary-based operations. What is your experience on this matter? In which kind of task each one is a clear win...

Who Compresses their HTML?

Even Stack Overflow doesn't compress their HTML. Is it recommended to compress HTML? As far as I've seen, it looks like Google is the only one.... (view the source). Why isn't this standard practice? ...

What tools for server side application performance testing you suggest?

What tools for server side application performance testing you suggest? Have an application server and need to test it performance. Not sure issue is server side. Need to investigate. NB:Better to have convenient UI ...

MySQL: Indexing large amount of columns with varied queries

Hey guys.... I really hope someone can help me here as I can't seem to get an answer anywhere :( Basically I'm working on a large table so indexes are pretty important, but it's basically a table that has several different fields that are searchable..... so the way the columns are queried has probably 100's of different variations, so c...

Java's varargs performance.

Coding i came around to check for the vararg performance of Java. I write following test code: public class T { public static void main(String[] args) { int n = 100000000; String s1 = new String(""); String s2 = new String(""); String s3 = new String(""); String s4 = new String(""); ...

When to trash hashmap contents to avoid performance degradation?

Hello, I'm woking on Java with a large (millions) hashmap that is actually built with a capacity of 10.000.000 and a load factor of .75 and it's used to cache some values since cached values become useless with time (not accessed anymore) but I can't remove useless ones while on the way I would like to entirely empty the cache when its ...

How to profile and address insert/update performance issues?

I am trying to insert thousands of rows into a table and performance is not acceptable. Rows on a particular table take 300ms per row to insert. I know that tools exist to profile queries run against SQL Server (SQL Server Profile, Database Tuning Advisor), but how would I profile insert and update statements to determine slow runnin...

Java 'Prototype' pattern - new vs clone vs class.newInstance

In my project there are some 'Prototype' factories that create instances by cloning a final private instance. The author of those factories says that this pattern provides better performance than calling 'new' operator. Using google to get some clues about that, I did not found anything relevant. Here is a small excerpt found in a javd...

Proper usage of double and single quotes?

I'm talking about the performance increase here. From all I know you can echo variables in double quotes ("), like so: <?php echo "You are $yourAge years old"; ?> But single quotes will just return You are $yourAge years old. But what about performance differences? I've always gone by the rule that single quotes are faster because t...

How to cache queries in EJB and return result efficient (performance POV)

I use JBoss EJB 3.0 implementation (JBoss 4.2.3 server) At the beginning I created native query all the time using construction like Query query = entityManager.createNativeQuery("select * from _table_"); Of couse it is not that efficient, I performed some tests and found out that it really takes a lot of time... Then I found a better...

Does clustered index on foreign key column increase join performance vs non-clustered ?

In many places it's recommended that clustered indexes are better utilized when used to select range of rows using BETWEEN statement. When I select joining by foreign key field in such a way that this clustered index is used, I guess, that clusterization should help too because range of rows is being selected even though they all have sa...

WPF performance on scaling a large scene

I have a full screen app that I want to be able to zoom in on certain areas. I have the code working fine, but I notice that when I get closer in, the zoom in animation (which animates the ScaleTransform.ScaleX and ScaleTransform.ScaleY properties on a Parent canvas) starts to jerk down a little and the frame rate suffers. Im not using...

Performance testing Flex applications

What's the best method for performance testing Flex applications with a BlazeDS/Java severs backend. We're looking at JMeter but can it be used with the amf the protocol at a more sophisticated level where values in a request can be manipulated? ...