performance

Postgres: improving pg_dump, pg_restore performance

When I began, I used pg_dump with the default plain format. I was unenlightened. Research revealed to me time and file size improvements with pg_dump -Fc | gzip -9 -c > dumpfile.gz. I was enlightened. When it came time to create the database anew, # create tablespace dbname location '/SAN/dbname'; # create database dbname tablespace...

mysql index performance on small "fast-moving" tables

Hi All, We've got a table we use as a queue. Entries are constantly being added, and constantly being updated, and then deleted. Though we might be adding 3 entries/sec the table never grows to be more than a few hundred rows. To get entries out of table we are doing a simple select. SELECT * FROM queue_table WHERE some_id = ? ...

Slow SoapHttpClientProtocol Instantiation

I am encountering a well documented issue in regards to instantiating a SoapHttpClientProtocol class. My situation is similar to the question posted here: http://stackoverflow.com/questions/172095/slow-soaphttpclientprotocol-constructor A solution to the problem can be found here: http://kb.vmware.com/selfservice/microsites/search.do...

Is it bad to call a singleton method many time over and over on a page in PHP?

In PHP if I create a singleton method for like 5 different caching classes (memcache, apc, session, file, cookie) Then I have a main cache class which basicly routes my set() and get() methods to the appropriate caching class. Now lets say I need to use the session, cookie, memcache, and file cache all on the same page. My main cache ...

O(1) lookup in non-contiguous memory?

Is there any known data structure that provides O(1) random access, without using a contiguous block of memory of size O(N) or greater? This was inspired by this answer and is being asked for curiosity's sake rather than for any specific practical use case, though it might hypothetically be useful in cases of a severely fragmented heap....

Does having large numbers of selectors slow down Objective-C programs?

Hi, when I register a large number (10000+) of additional selectors in an Objective-C program using the runtime function sel_registerName, does this slow down my program? Not taking into account the time it takes to register those selectors. Best regards, Jochen ...

Legitimacy of optimizing a site to site to load fast for googlebot

The question I have is a bit of a ethical one. I read here that Google gives a little more influence to sites that are optimized to load quickly. Obviously this makes Google's job easier, using less resources and it is a better experience for everyone, so why not reward it? The actual process of finding bottlenecks and improving page ...

The kinds of rendering in dynatrace~~

I use dynatrace to find problems in my company site. I want to say,wow, this is a beautiful tool for page performance. It's another side man. But I found there are many kinds of rendering in dynatrace. For example: Calculating generic layout Calculating flow layout Scheduling layout task What's the different for these rendering? ...

Merging all sub-arrays with mutual elements into one sub-array

I need to find all sub-arrays which share any mutual element and merge them into one sub-array. (Implementing in Python but any algorithmic idea would be helpful) Multidimensional array structure: categories = {'car':['automobile','auto'], 'bike':['vehicle','motorcycle','motorbike','automobile'], 'software':[...

jQuery. Different performance on local and through the internet

I use jQuery 1.4 for AJAX, MVC on the server side. Everything works fast on the local computer. Tables with data are compiled and sent as HTML documents (I’m testing the system with large tables, over 100KB). When I download the same page through the internet, everything works 5-10 times slower or is simply pending. I checked Forefox...

Is it better to display latest tweets on a webpage using the PHP API or Javascript?

I want to display a user's latest Tweets on a webpage while maintaining the ability to style the Tweets with custom CSS and also maintaining good page load speed. I have managed to display the latest Tweets in 2 ways. Using the PHP Twitter library (by Aaron Brazell). By using this method, my PHP code has to wait for a response from Tw...

Performance replacement for String in Java

Hi Anyone remembers the name of that opensource "project" that developed some nice replacement for String in java ? I know there is is one, just cant find it in google and dont remember the name. (i am not talking about StringBuilder) Thanks ...

Measuring Web Page Performance on Client vs. Server

I am working with a web page (ASP.net 3.5) that is very complicated and in certain circumstances has major performance issues. It uses Ajax (through the Telerik AjaxManager) for most of its functionality. I would like to be able to measure in some way the amounts of time for the following, for each request: On client submitting reques...

DoNotCastUnnecessarily really performance rule ?

Hi all. First, I was trying to do something like : class Class1 { public void Do() { } } class Class2 { public void Do() { } } ... if (o is Class1) { Class1 c = (Class1)o; c.Do(); } if (o is Class2) { Class2 c = (Class2)o; c.Do(); } but fxcop tells me that : Performance Rules, Avoid duplicat...

MySQL join performance vs correlated queries

Hi, I'm wondering if a 'normal' inner join leads to higher execution performance in MySQL queries than a simplistic query where you list all tables and then join them with 'and t1.t2id = t2.id' and so on .. ...

.NET Compact Framework: how to ensure form is visible before running code?

We've got a Model-View-Presenter setup with our .NET Compact Framework app. A standard CF Form is implementing the view interface, and passed into the constructor of the presenter. the presenter tells the form to show itself by calling view.Run(); the view then does a Show() on itself, and the presenter takes over again, loading up data ...

Performance metrics for iPhone app?

Is there a good way to record performance metrics (like number of times a function is called) for an iPhone app? I can't find any decent performance tools for it. ...

Slow first page load on asp.net site

Hi, Every now and then (always after a long period of idle-time, e.g. overnight) when I access a site built using asp.net - it takes around 15 seconds to load the page (15 seconds before I see any progress whatsoever, then the page comes up fast). Further pages on that site, or refreshes, are quick as usual - they are also fast on oth...

Core Data model design — search vs relationships?

I'm familiar with Core Data basics and have done some dabbling, but have not really done any major apps. Now I need to plan for one. And the question is not specifically about Core Data, but more about data design in general, though I am going to use Core Data to implement it on iPhone which is important for considering performance. Ima...

How can I test if my web application could handle heavy traffic?

What would be a proper way to simulate a large number of requests to test if my web application can handle it? ...