performance

Yui files are too heavy and affect site's performance

I ve developed an asp.net web application with YUI as the javascript library... My site was very slow that it took three minutes to view my page on my first visit.... When inspected through firebug, My yui file was too heavy with size 278kb... what can be done to improve performance? ...

Poor numpy.cross() performance

I've been doing some performance testing in order to improve the performance of a pet project I'm writing. It's a very number-crunching intensive application, so I've been playing with Numpy as a way of improving computational performance. However, the result from the following performance tests were quite surprising.... Test Source Co...

Managing Setup code with TimeIt

As part of a pet project of mine, I need to test the performance of various different implementations of my code in Python. I anticipate this to be something I do alot of, and I want to try to make the code I write to serve this aim as easy to update and modify as possible. It's still in its infancy at the moment, but I've taken to usin...

How do I get Java to use my multi-core processor?

I'm using a GZIPInputStream in my program, and I know that the performance would be helped if I could get Java running my program in parallel. In general, is there a command-line option for the standard VM to run on many cores? It's running on just one as it is. Thanks! Edit I'm running plain ol' Java SE 6 update 17 on Windows XP. W...

Writing data chunks while processing - is there a convergence value due to hardware constraints ?

Hi, I'm processing data from a harddisk from one large file (processing is fast and not a lot of overhead) and then have to write the results back (hundreds of thousands of files). I started writing the results straight away in files, one at a time, which was the slowest option. I figured it gets a lot faster if I build a vector of a c...

Better performance for SQLite Select Statement

Hi Guys, I'm developing an Iphone App where the user types in any string into a searchbar and presses the search button. After that a result list should appear. In my SQLite I have four columns a, b, c, d. Let's say they have the following Values: Dataset 1: a: code1 b: report1 c: description1_1 d: description1_2 Dataset 2: a: code2 ...

How do online judge sites isolate program performance?

There are many online judge sites which can verify your program by comparing its output to the correct answers. What's more, they also check the running time to make sure that your program running time doesn't exceed the maximum limit. So here is my question, since some online judge sites run several test programs at the same time, how...

Meaning of "Select tables optimized away" in MySQL Explain plan

What is the meaning of Select tables optimized away in MySQL Explain plan? explain select count(comment_count) from wp_posts; +----+-------------+---------------------------+-----------------------------+ | id | select_type | table,type,possible_keys, | Extra | | | | key,key_len,ref,rows | ...

Effect of using more video memory than physically available (WPF)

I have a WPF application which uses large amounts of frame based animations (100's MB worth of PNGs). Using the WPF Performance Suite tool "Perforator" I can see that, at times, the video memory being used is greater than is physically available on the GPU (512MB). I understand that GPU memory is virtualized from Vista onwards (>WDDM 2...

Java: Performance SQRT Calculations

Hi, I have this code: package math; import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { System.out.println("Hi, I will beat Java's Math.sqrt(double) method"); System.out.println("Both ways of calculation will be done"); S...

Optimizing performance on Erlang processes

Hi all, In a test I'm building here my goal is to create a parser. So I've built a concept proof that reads all messages from a file, and after pushing all of them to memory I'm spawning one process to parse each message. Until that, everything is fine, and I've got some nice results. But I could see that the erlang VM is not using all ...

How to Slow down the browser

I am trying to test my application performance in different browsers (specially ie6). Also I have ie8, ff and Chrome installed. I am using tool like ietester to see how my app looks in ie6. I am trying to find a way, as how my application will behave if the browser is relatively slow (keeping the bandwidth/network speed same.). Is ther...

Where does performance still matters?

Just wondering: In which fields of programming does performance still matter? I know about some of the classic fields like multimedia/games, embedded-systems and so on, but that can't be all. Do you know about any niches where performance is still relevant? ...

How to load balance with WCF

I am setting up a desktop WPF application with my BLL running as a WCF service on a separate application server. I'd like to set up a server farm and load balance the BLL. What is the recommended method to accomplish this? Does WCF include any features that help with load balancing? ...

How to improve speed of dynamic HTML table creation in Firefox?

I am rendering a small table(maybe 10-12 cells) which is updated constantly. I want it to be quick. Chrome does the work very fast, but i am having problems on Firefox/IE. Any suggestions for faster rendering? Thanks ...

Performance impact of having classes with no styling?

Does it impact performance to have classes that are not used for styling on elements? E.g.: <div class="translatable">...</div> where .translatable is used to find all the elements that are going to have their content dynamically altered in certain situations. ...

Best way to plug memory holes in J2EE struts app (without paying money :( )

I have a J2EE struts app running on Weblogic 10.3 which has obviously severe memory issues. My company won't buy 3rd party tools like Jprobe so my only option is to use freely available tools. I have enabled gc logs and observed that memory consumption is unusually high triggering frequent gc cycles. Right now I am configuring JAM consol...

Improve performance of DataSet.InitClass

I inherited a giant dataset that my profiler notes that the InitClass method takes over 5 seconds to load. This is generated code so, other than removing unneeded datatables etc... is there anything I can do to improve the performance of this method? This is in VB.NET EDIT The profiler says that 99% of the time is spent inside the m...

CNAME for Omntiure

What are some reasons why sites like LLNW create a CNAME record for Omniture requests (e.g. metrics.limelightnetworks.com instead of limelightnetworks.122.2o7.net)? I've found a post that seems to suggest that it's intended to circumvent 3rd-party-cookie settings. Are there any other pros/cons to this approach? From a performance persp...

C# ASP.NET 2.0 Metrics Dashboard

I want create some type of ASP.NET (C# 2.0) Metrics class to help monitor the performance of a production web application. I am somewhat familiar with the 2.0 Health Monitoring and that is not what I am looking for (I don't think anyway). I would rather have a dashboard that gives me a snap shot as opposed a log or list of events. I w...