PHP performance: accelerators and HTTP servers
First, which is the fastest accelerator: XCache or APC? And should I have nginx, lighttpd, Apache or Apache with nginx as a reverse proxy for static contents. What's better? Thank you. ...
First, which is the fastest accelerator: XCache or APC? And should I have nginx, lighttpd, Apache or Apache with nginx as a reverse proxy for static contents. What's better? Thank you. ...
So, I'm using boolean matrices whose dimension is usually a couple dozen to a couple hundred, they are usually quite sparse (just some 2-4 non-zeros in most rows and columns) and my runtime is heavily dominated by their multiplication. What datastructure suits best for speeding up multiplication under these circumstances? Currently I'm...
I'm working through the problems in Project Euler as a way of learning Haskell, and I find that my programs are a lot slower than a comparable C version, even when compiled. What can I do to speed up my Haskell programs? For example, my brute-force solution to Problem 14 is: import Data.Int import Data.Ord import Data.List searchTo = ...
I want to know how long it takes a particular page to render, where are the various parts in the Spring MVC framework that I can start and stop my timer? BTW, what java class should I use to get the most accurate time in milliseconds? ...
Hey everyone, I'm trying to whip up a sketch application for the iPad so that I can draw with my finger. I've got a problem that the performance is atrocious. I've pasted a snippet of the core of my code below. In reality it's a bit more complicated. Does anyone know off the top of their heads why this CGContext stuff is slow? I'd appr...
I have an asp.net webforms application in production server and it was really slow. So i decided to get some performance tips from my fellow SO users. I ve applied these to increase my asp.net website performance, Set debug=false Turn off Tracing Image caching <caching> <profiles> <add extension=".png" pol...
hi, i have a function defined by a combination of basic math functions (abs, cosh, sinh, exp ...) I was wondering if it makes a difference (in speed) to use, for example: numpy.abs() instead of abs()? ...
Is it worth it to use the inline keyword or the compiler is smart enough to know when he needs to inline a function ? ...
Hi there! This question might be theoretical but i think some of the cases it makes sense. I am just wondering about which solution is the most efficient: loading HTML templates or build up them with DOM functions? Both has pros/cons and there's a lot of other factors that can close off any of them: For example it's obvious that DOM-co...
hey guys i have to read a huge xml file which consists of over 3 million records and over 10 million nested elements naturally i am using xmltextreader and have got my parsing time down to about 40 seconds from earlier 90 seconds using multiple optimization tricks and tips but i want to further save processing time as much as i can hen...
My experience is that loading websites in a WebView is much slower than performing the same actions in the Android Web Browser. I can see that all files have been loaded in my Apache log, it will take a few seconds until the page is displayed in the WebView control, however. Opening the same page in the native Web browser will result in ...
Google Page Speed test tells me I need to distribute my queries across DNS Domain names to speed up rendering. Since I do development offline, I'd like to find a solution that will distribute my static content (img, CSS, js) across different hostnames, and will still work when I'm offline in an airplane. Q: How can I code my page to u...
Lets say a jee based e-commerce web site is performing well giving expected response time and throughput. The web site is undergoing major ui changes and it is expected to bring 3 times more traffic. How do I find out whether the projected web traffic could be handled by the existing environment? Is there a way to find it out using som...
An algorithm written in Java should be faster than the same algorithm written in JRuby, right?. However, if I write the algorithm in Java and then call it from JRuby, will I still get the performance advantages of java? I ask this because I am writing a very complicated utility class for my JRuby on Rails app and need to choose whether...
Hi, I'm tryin to run AQtime (v5.45), as preformance profiler under windows vista or 7 on my multi-core laptop but it seems that the program is not working correctly, he does not show any routine and seems to throw an exception when trying to call InstallCustomModule in clr.dll, i tried to install a demo version of AQtime 7 which is work...
I develop Android using Eclipse and the ADT plug-in... and it's... slow. I have to restart frequently and it gets painfully worse when I have various Android projects open (needed for when I use library projects). Are there any specific optimizations that I can make to improve Eclipse performance when using the ADT plug-in? ...
Hi, I have a MyISAM table with 2 fields f1 and f2, both Unsigned integers and cannot be null. The table purposely has no primary key but it has an index on f2. The table currently has 320 million rows. I would like to be able to insert new rows (about 4000 once every week) into this table at a decent speed. However, currently I insert ...
I created a filter that monitors the length of a request. long start = System.nanoTime(); ... long end = System.nanoTime(); How can I get the number of milliseconds from this now? ...
I have a class structure such as following for storing static final constants: public final class A{ //..list of constants public final class B{ //..list of constants public final class C{ // ..list of constants } } } If I need to access static constants of class C(say about 10 to them) in some thread, which of the two app...
Does implementing the Java Security Manager result in decreased performance? ...