performance

MySql post archives. What's the best way to handle massive archived posts that need to be kept?

If my wordpress site generates thousands(perhaps millions) of posts a day, what is the best way to keep the site from taking a performance hit with posts that only need to be seen if someone searches old posts or for legal purposes? My first thought was to run a cron job during a lull and move the out-of-date posts to an archive databas...

Splitting silverlight app into pieces

We have an compiled silverlight application which is a pack of control that are used in different parts of web site. Does it make sense splitting this big application into several pieces, so as to reduce, let's say, initialization time of a single control from the pack, or maybe performance will benefit in some other way? If it does, wha...

Should I use a background thread for my UI actions?

Background I've got an NSOutlineView that shows TrainingGroup entities. Each TrainingGroup represents a folder on the local machine. The NSOutlineView is bound to an NSTreeController with a fetch predicate of IsTrained == 0 Each TrainingGroup can be assigned to a project. Each TrainingGroup has many TrainingEntries that show a time wor...

Is there a faster way of doing this?

For a little practise fun project I did this: I added a grid of UIView instances to an view controllers view which work pretty much like an number segment LCD (but those LCD screens that have squares and can show pretty much anything, not just numbers...with low resolution though). There are 8 * 8 views on the screen (so 64 views, in ...

What hardware improvements should we make to speed up our build machine?

We have a build machine running in our development department, which we've set up to build continuously throughout the working day. What this does is: Deletes the source code previously checked out (5 minutes) Does a clean checkout from subversion (15 minutes) Builds a whole bunch of C++ and .NET code (35 minutes) Builds installers and...

using microsoft velocity / memcache from classic asp

hey guys can anyone tell me how to read data from cache saved in microsoft velocity from classic asp? if above is not possible, then what if i use memcache instead. then is it possible and worth it to read memcache from classic asp thanks in advance ...

Performance Tests of Serializations used by WCF Bindings

I have the following object: public partial class Game { public bool Finished { get; set; } public Guid GameGUID { get; set; } public long GameID { get; set; } public bool GameSetup { get; set; } public Nullable<int> MaximumCardsInDeck { get; set; } public Player Player { get; set; } public Player Playe...

Tiles framework low performance

I built a Spring MVC web app with TilesViewResolver, but the performance is poor, very slow. In a benchmark Tiles is sevent times slower than JSP. Is there any way to improve this? ...

implementing Google Page Speed recommendations

When analyzing my various websites pages with Google Page Speed, I always have the following recommendations: leverage browser caching serve static content from a cookie-less domain I have no idea on how to eliminate or implement these messages. Can this be done: through .htaccess through php code Apache configuration How can t...

What's the most effective way to insert content into binary file, or join two files.

We want insert something into binary file, but want do I/O as less as possible. We don't want read the second part and write it back. Is there any way to do it. We know in theory, file are saved as blocks in file system. Could we just break the chain of blocks and insert a new one between it? The same idea could also be used in join two...

Are You A Prime Number

I've been interested in the problem of finding a better prime number recognizer for years. I realize this is a huge area of academic research and study - my interest in this is really just for fun. Here was my first attempt at a possible solution, in C (below). My question is, can you suggest an improvement (without citing some other...

Is there any performance risk in having transactions wrap every datastore event in App Engine - reads and writes?

According to the App Engine docs, you wrap a datstore event in a transaction like this: import javax.jdo.Transaction; import ClubMembers; // not shown // ... // PersistenceManager pm = ...; Transaction tx = pm.currentTransaction(); try { tx.begin(); ClubMembers members = pm.getObjec...

JDBC ResultSet.absolute() vs. Limit

What's the preferred method to fetch a subset of records from the database? Use rs.absolute() or Limit? ...

iOS CoreData: NSFetchedResultsController performances

Hi! In the model, I have two entities: Record and Category. Category is one-to-many with Record through inverse relationship. The persistent store is of SQLITE type and the db is not so small, about 23MB (17k records). I use a list-detail design to show the records table and the detailed record view.The list viewController uses NSFetch...

Generate line graph for any benchmark?

I had spent so many hours failing to find a line graph generator for my benchmark results that I just wanted to plug in. I tried quite a few like Google's chart API but it still seemed confusing or not graceful looking, I am clueless. Examples of benchmark images I wished to make something like are this: http://developer.studivz.net/wp-...

How can avoid people using my code for evil?

I'm not sure if this is quite the right place, but it seems like a decent place to ask. My current job involves manual analysis of large data sets (at several levels, each more refined and done by increasingly experienced analysts). About a year ago, I started developing some utilities to track analyst performance by comparing results a...

dealing with jquery files?

i have quite a lot of jquery files, like around 6 files, how can i sort them out. shall i put them all in one file, and upload it to a CDN, taking in account page loads etc. p.s. im also using google jquery cdn! ...

Scalability issues for a complex process consuming php application?

Hi Consider a somewhat process consuming PHP application that works heavily with complex DB transactions, and doesn't have any choice but to have fairly high memory consuming algorithms. Like up to 4MB memory usage per request. (1 MB on average for those certain requests, less than 200KB of variable data for regular requests) Its obvious...

Evaluating the performance of a software architecture?

I'm looking for tools that help me evaluate the performance of a software architecture. For this specific project I need to model a [distributed] system of a modest size that is comparable to message oriented middleware (MOM). Based on a model I'd like to measure the system's performance under certain circumstances. Also, the tool(s) ...

Performance penalty of persistent variables in MATLAB

Recently I profiled some MATLAB code and I was shocked to see the following in a heavily used function: 5.76 198694 58 persistent CONSTANTS; 3.44 198694 59 if isempty(CONSTANTS) % initialize CONSTANTS In other words, MATLAB spent about 9 seconds, over 198694 function calls, declaring the persistent CONSTANTS and checking if it ...