performance

Fiddler slows down my browsers

Working with fiddler on 2 pcs. On my better performing pc fiddler slows down both browsers (firefox and IE7) significantly. any suggestions would be appreciated thanks, Ido ...

EJB3 - Session Bean calling method of another bean interface

I have a little question... I search the difference in local access between accessing a method that is only declared in the remote interface of a bean and not in the local interface... does the interface declaration (remote or local) determine the access protocol of the method? or does the ejb container understand that both beans are ru...

What's faster/better to use MYSQL md5 FUNCTION or run md5 php function ?

i check password of users against the db. what is faster check it in mysql MD5 function ... pwd = MD5('.$pwd.') OR in PHP ... pwd = '.md5($pwd).' or what is The Right Way Between two options ? thanks ...

Static vs. non-static method

Suppose you have some method that could be made static, inside a non-static class. For example: private double power(double a, double b) { return (Math.Pow(a, b)); } Do you see any benefit from changing the method signature into static? In the example above: private static double power(double a, double b) { ...

Do LINQ queries have a lot of overhead?

Are simple LINQ queries on an IEnumerable<T> lightweight or heavyweight? How do they compare to writing for or foreach loops by hand? Is there a general guideline for when to prefer LINQ versus manual searching? For example: var lowNums = from n in numbers where n < 5 select n; Compared to: List<int> lowNums = new List<i...

Recommended books for Windows desktop application performance

I'm building a desktop application that runs in a Windows environment using .net technology. It's important that this application run smoothly and consume as little of the user's system resources as possible, since the user is likely to keep it running throughout the work day. I'm looking for good, in-depth resources on how to constru...

MYSQL create command optimization?

Following is the code to create a table in mysql database. CREATE TABLE IF NOT EXISTS `hightraffic` ( `id` int(11) NOT NULL auto_increment, `videoID` int(11) NOT NULL default '0', `userid` int(11) NOT NULL, `name` varchar(255) NOT NULL default '', `title` int(11) NOT NULL default '0', `date` datetime NOT NULL default '0000-0...

Oracle PL/SQL: Any benefits in changing PLSQL_CODE_TYPE from interpreted to native ?

Are there are tangible benefits in changing the PLSQL_CODE_TYPE from interpreted to native? Was wondering if there are any case studies on the same. If benefit justifies the change, how can I go about implementing the same ? My platform is Windows 2003 server, running Oracle 10gR2 (10.2.0.1.0) if that helps. ...

Improving DAL perfomance.

The way i currently populate business objects is using something similar to the snipet below. using (SqlConnection conn = new SqlConnection(Properties.Settings.Default.CDRDatabase)) { using (SqlCommand comm = new SqlCommand(SELECT, conn)) { conn.Open(); using (SqlDataReader r = comm.ExecuteReader(CommandBehavior...

New to Rails, is this kind of performance normal?

I have an app and in it's only controller, an action is thus configured: def do_call response = <<EOF <real-time-stat> <awt type="integer">1</awt> <cc type="integer">5</cc> <cp type="integer">0</cp> <dc type="integer">0</dc> <ef type="float">100.0</ef> <rc type="integer">6</rc> <sl type="float">100.0</sl> <state type="integer">0</st...

PHP Image Resize / Relocate - Speeding it up

I've written a little function to take a url, and resize the image and store it on my local, however the script is taking about .85 seconds to run when it needs to create the folder, and .64 seconds on a resize. I currently have JPEG and PNG supported as seen below. I'm wondering if there is a quicker method or something I'm doing that...

Is there a way to set the delay time of tooltips being displayed on a particular component in java swing?

I'm trying to set tooltips on a JEditorPane. The problem is that the method which I use to determine what tooltip text to show is fairly CPU intensive - and so I would like to only show it after the mouse has stopped for a short amount of time - say 1 second. I know I can use :- ToolTipManager.sharedInstance().setInitialDelay() however ...

What's the best way to optimize this MySQL query?

This is a query that totals up every players game results from a game and displays the players who match the conditions. select *, (kills / deaths) as killdeathratio, (totgames - wins) as losses from (select gp.name as name, gp.gameid as gameid, ...

Compact Framework in WinCE and performance

Anyone know relative performance hit for using the full as opposed to compact WinCE framework? We are contemplating using the full to get the ability to do drag and drop, etc. but not if it's a huge hit to processing ability. Any guesstimates about the difference? Uses x% more processor? ...

What is the performance impact of adding methods to native JavaScript objects?

I realize that adding methods to native JavaScript objects (Object, Function, Array, String, etc) is considered bad practice by some, but is there also a performance hit associated with this? Would instances of native objects take longer to create and/or use up more memory if their prototype has been extended with additional methods? ...

is my jQuery script performing bad?

Hey there! I build a web tool for a photo lab to start print orders to be processed by the printers. On older Mac's I am experiencing bad performance with my scripts. I was wondering whether there are some low performing parts in my scripts. Do you guys see such low performing parts? thx, Max $(function() { /* when start button is ...

SSL Client Cert Verification optimisation

We currently have a group of web-services exposing interfaces to a variety of different client types and roles. Background: Authentication is handled through SSL Client Certificate Verification. This is currently being done in web-service code (not by the HTTP server). We don't want to use any scheme less secure than this. This post ...

What's a great way to benchmark Apache locally on Linux?

I've been developing a web-site that uses Django and MySQL; what I want to know is how many HTTP requests my server can handle serving certain pages. I have been using siege but I'm not sure if that's a good benchmarking tool. ...

Different between Oracle's plus notation over ansi join notation?

What's the difference between using oracle's plus notation over the ansi standard 'join' notation? Is there a difference in performance? Is the plus notation deprecated? Thanks ...

Can jconsole data be retrieved from the command line?

I currently use jconsole to monitor performance metrics of my Java application and would like to script this data acquisition. Is there a way to retrieve these VM metrics (heap memory usage, thread count, cpu usage, etc) to STDOUT? The data in "top -p PID -b -n 1" doesn't quite cut it. Thanks ...