performance

Data in XML files: One large file or multiple small ones?

I am currently working on a XML-based CMS that saves data in chunks called "items". These can be used on the website to display content. Now, at the moment I have one separate XML file for every item. Since most pages on that website use about three to four of these items, a rather small website with e.g. 20 pages has about 100 differe...

Stopping FireFox from autoloading RSS?

I was working on a site recently and we adding an RSS link to the HTML header. Example: <link href="/feed.rss" title="RSS Feed" rel="alternate" type="application/rss+xml" /> The problem that we were having minor performance issues and when we looked into it we found that FireFox 3 was loading the RSS feed on every page load. We checke...

Does windows have performance counters to measure statistics of a dialup connection?

Hi, Does windows have performance counters to measure statistics of a dialup connection? Opening up Perfmon I can see that it has a performance counter called "Network Interfaces" which can be used to collect stats on a chosen network interface (mostly LAN cards) but I cannot see my dial up connection in the list here. How do I go about...

Are doctored performance / features, for the purpose of business development, ethical?

My project has some rather open-ended requirements in terms in file size limits and performance. In the end, the performance varies by platform and typically execution time is the only issue. Faster platform equals faster execution. Our business guy says we should find our current maximum capability, make sure we exceed the previous lega...

Do many old ColdFusion Performance admonitions still apply in CFMX 8?

I have an old standards document that has gone through several iterations and has its roots back in the ColdFusion 5 days. It contains a number of admonitions, primarily for performance, that I'm not so sure are still valid. Do any of these still apply in ColdFusion MX 8? Do they really make that much difference in performance? Use co...

What server performance issues do low-bandwidh clients cause?

Hi I have a project to distribute large files to clients, some of which certainly will have low bandwidth (ISDN or DSL class). The system is interactive, with clients pulling data from the server. Just curious what kind of performance issues I can expect will be imposed by these lower bandwidth connections when compared to a client wi...

Whats the fastest way to import data from a remote database to a local database.

My current project I am pulling data from a remote database and saving it locally. During some stress test we are seeing horrible results with writing to a database. To give you some perspective: Our stress test made ~9000 actions, which saves off about 54,000 records. (1 action = 6 records) By 6 records, I mean 6 rows in 4 different t...

Memory usage of iterators in C#

What is the impact on memory usage of using lots of iterators in C#? Let's assume a program that performs thousands of foreach loops -- does each loop allocate a temporary object on the heap via a call to GetEnumerator? Does the CLR perform any kind of optimization (e.g. stack allocation of IEnumerator objects)? Or is this simply not ...

Is there a name for this architectural pattern?

Suppose you have a web site consisting of: A web server serving your various users requests A DB for persistence A separate server asynchronously doing background stuff - preparing the data on the DB, updating it according to changes, etc. - regardless of what's going on in the main server. You can easily translate this into another ...

Is it inefficient that linq to sql translates this query into the format: "select *"?

I'm not super familiar with Linq to SQL yet but something that strikes me is that this: var articles = (from a in DB.Articles where a.ArticleId == ArticleId.Question && a.DeletedAt == null && a.Votes >= minVotes orderby a.UpdatedAt descending select a). Take(maxarticles); gets translated to this: string query = "...

Why is appending to a list bad?

I've recently started learning scala, and I've come across the :: (cons) function, which prepends to a list. In the book "Programming in Scala" it states that there is no append function because appending to a list has performance o(n) whereas prepending has a performance of o(1) Something just strikes me as wrong about that statement. ...

SQL Server SELECT Performance with JOINS

Hi, in SQL Server, I would like to know if there is any performance difference between doing this (A)... SELECT a.field1, a.field2, a.field3, b.field1 FROM table1 a INNER JOIN table2 b ON a.IDfield = b.IDfield and this (B)... SELECT a.field1, a.field2, a.field3, b.field1 FROM table1 a, table2 b WHERE a.IDfield = b.IDfield Well, thi...

Good graph traversal algorithm

Abstract problem : I have a graph of about 250,000 nodes and the average connectivity is around 10. Finding a node's connections is a long process (10 seconds lets say). Saving a node to the database also takes about 10 seconds. I can check if a node is already present in the db very quickly. Allowing concurrency, but not having more tha...

SQLite for client-server

Hi, I've seen a couple of SQLite performance questions here on Stackoverflow, but the focus was on websites, and I'm considering using this DB in a client-server scenario: I expect 1-10 clients for one server for now, could go up to 50 or more in the future. slightly more reads than writes the DB would sit behind a server process (i.e...

Is performance affected by adding categories to a class.

I'm new to Cocoa and have a small question before I get carried away with using categories. Say you add a new method to NSString. Does that affect performance of normal NSString messages, or are category methods only checked when a method call does not match the standard method set? ...

Tool to measure Render time

Hi Folks, Is there a tool out there to measure the actual Render time of an element(s) on a page? I don't mean download time of the resources, but the actual time the browser took to render something. I know that this time would vary based on factors on the client machine, but would still be very handy in knowing what the rendering en...

finding performance bottlenecks in ASP.NET

We have MSSQL, some C# web services, some ASP.NET, and some AJAX. We're having terrible load times, normally 2-3 seconds to refresh a page, sometimes far more. I have no idea where to start. What profiling tools are there, across the entire end-to-end, to identify where the biggest bottlenecks are? ...

Ok to use memcache in this way? or need a system re-architecture?

Hi all, I have a "score" i need to calculate for multiple items for multiple users. Each user has many many scores unique to them, and calculating can be time/processor intensive. (the slowness isn't on the database end). To deal with this, I'm making extensive use of memcached. Without memcache some pages would take 10 seconds to lo...

Debugging tools for performance of web application

I have a web application developed in ASP.NET 2.0 ,deployed in a dedicated server.Now my pages taking long time to load.I want to debug the root cause.I have checked the code level performance bookmarks and nothing found wrong there.Is there any tools to debug this ? Some thing like analyzing the execution plan of an sql query in sql ser...

Javascript file inclusion in html pages- what happens underneath in the browser?

Hello, I think this may be a browser dependent question- Suppose I have 10 Javascript files and several HTML pages. Suppose HTML pageA needs only JS1.js and JS3.js, similarly HTML pageB needs JS4.js and JS1.js. I want to know what would be effect of including all the 10 javascript files in all HTML pages? Will it directly relate to the ...