performance

Concurrency in Java EE application

Hi all, Previously I asked this question: http://stackoverflow.com/questions/2941657/read-quicktime-movie-from-servlet-in-a-webpage Basically I used a servlet to stream a movie file to a quicktime plugin on browser (In order to play file outside the root). At the end Ryan Fernandes asked me the question regarding concurrency issue. I ...

background-image load or display delays even though cached in IE7

I have a seperator li which has a background image, in an expanded tree menu, it may appear several times using the css: .simpleTree .line { background:url("/images/Css/gridLine.gif") no-repeat 0 0; Even tho it is cached (from previous instances), there is still a slight delay in IE7 (~500 - 1sec) before all the background images ...

Linq statement faster than foreach loop

I am writing a Mesh Rendering manager and thought it would be a good idea to group all of the meshes which use the same shader and then render these will I'm in that shader pass. I am currently using a foreach loop, but wondered if utilising Linq might give me a performance increase? ...

How to check if app is cpu-bound or memory-bound?

I've got an application that does few computational CPU work, but mostly memory accesses (allocating objects and moving them around, there's few numeric or arithmetic code). How can I measure the share of the time that am I spending in memory access latencies (due to cache misses), with the CPU being idle? I should note that the app is...

using smart optimizer with magento.

I want to use smart optimizer with magento. I have copied the files and copied the content of .htaccess file to magento's .htaccess file. Its working fine with home page but with subpages of magento it gives file out of directory type of error. ...

How do CPG of Corosync, ZeroMQ, and Spread compare for messaging?

I'm interested in: Performance Latency Throughput Resource usage (CPU, memory, ...) High availability No single point of failure Features Transport options Routing options Stability Community Active development Widely used Helpful mailing list, forum, IRC channel, ... Ease of integration with my current codebase Gotchas maybe A...

Performance of system.runtime.caching

I have compared the performance of system.runtime.caching in .NET 4.0 and the Enterprise Library Caching Block and to my surprise it performs terribly in comparison when fetching large data collections from cache items. Enterprise Library fetches 100 objects in about 0,15ms, 10000 objects in about 0,25ms. This is fast, and natural for a...

ASP.Net increasing the server performance?

I have a user control in my page which is inside a update panel.By using the user control i am displaying a message for the user.I need to change the message every 5 min.The message is stored in the data base and the user control will retrieve the message from the database every 5 min once automatically. My problem is when there are ...

Wordpress / PHP - Cache custom queries ?

Hi So I'm making a plugin that gets a set of posts (using wp_query), and it does this every time you refresh a page. Can I cache the query results so the page gets generated faster? If so, how do I do it? because WP_cache functions don't work even if I enable cache in the config file. A alternative to wp_cache seem to be transients. ...

Sql recursive query to create a unique list

Hi, I need to move some code from C# into a Stored Procedure for speed reasons. What I'm trying to get is a unique list of TemplateIds from the RoleTemplates (or CategoryToRoleTemplate) table based on a CategoryId. However, I need the query to walk the Category.ParentId relationship, and collection all of the parent's related TemplateId...

improving performance of a CATiledView

I have been looking for a way to improve the performance of my CATiledView. The view takes up nearly the entire screen (i have an iPad and iPhone version).Currently it takes about 12 seconds for the tiles to fill in completely (12 seconds on both devices). I have seen other apps use CATiledView and it take much less time for the tiles to...

Statistics on Query Time (PostgreSQL)

I have a table with a billion rows and I would like to determine the average time and standard deviation of time for several queries of the form: select * from mytable where col1 = '36e2ae77-43fa-4efa-aece-cd7b8b669043'; select * from mytable where col1 = '4b58c002-bea4-42c9-8f31-06a499cabc51'; select * from mytable where col1 = 'b97242...

How to debug a database query for performance

I am absolutely new in databases and SQL queries. Q1. What are the common problems one generally face in database queries? Probably extremely large queries, performance issues, timeout and connectivity errors, import export and restoration errors Q2. What approach and tools one should be aware of while debugging a sequel ...

How to use gzip

Hy can anyone that is using gzip for html js php and css how to implement this on a server. What I want to know is : What do I have do write in .htacces 2.What and from where to download most important does it make a diferance and does it pay off. Thx for your help and time ...

VC++ compilation time and performance

Hi Folks, I'm working on a multiplaform project (MacOS, Linux and Windows) and I've been having some performance issues when trying to compile a big source file in VS C++ 2010. Here's a little background. There's one .cpp file inside the project that is 800KB big. The size of the file is caused by the fact that I'm compiling an array t...

A Faster way of Directory walking instead of os.listdir ?

Hello SO! I am trying to improve performance of elfinder , an ajax based file manager(elRTE.ru) . It uses os.listdir in a recurisve to walk through all directories recursively and having a performance hit (like listing a dir with 3000 + files takes 7 seconds ) .. I am trying to improve performance for it here is it's walking function:...

Performance Hit using CAST() in TSQL (SQL Server)?

We have a SQL generator that emits SQL conditional statements generically for specified fields (which for the sake of discussion: we will label as myField). So, if myField is of type NVARCHAR, we can do a comparison of said field against a string like so: myField = 'foo'. However, this does not work for fields of type NTEXT. Thus, w...

Why do SQL FullText queries slow down when you OR?

In SQL Server (2008), I have a FullText index on two columns, call them Table1.FirstNames and Table2.LastNames. After profiling some queries, I came up with the following results: SELECT * FROM (Table1 LEFT JOIN Table2 ON Table1.SomeKey=Table2.SomeKey) WHERE CONTAINS(FirstNames, 'Bob') OR CONTAINS(LastNames, 'Bob') => 31 197ms SELEC...

jQuery global events and performance?

I was in search of a way to show a status indicator using jQuery and I found a solution in the jQuery Cookbook, it showed this solution (function($) { $(document).ready(function() { $('#ajaxStatus') .ajaxStart(function() { $(this).show(); }) .ajaxStop(function() { $(this).hide...

In IE Javascript execution speed is slower than Firefox, Safari and Chrome....

In IE Java-script load slower than Firefox, Safari and Chrome? Is there a way to load JavaScript quickly in IE also? General best practice is to keep JavaScript at bottom of the page, does it make Js rendering more slow in IE? Edit: When we apply any jquery plugin to website to make any usable or interactivity then in IE effect shows...