performance

Performance monitoring script in linux

Hello, I'm trying to create a script that will allow me to monitor CPU Utilization, Memory Utilization, I/O Utilization, and Network Utilization. Currently, I have a script that should run the necessary commands on linux. Hopefully in the end, I'll be able to run this every 15 or so minutes and then use specific information to analyze ...

MonoTouch - Fields vs Automatic Properties

Is there a noticeable performance difference when using fields instead of auto properties? What about if I'm deserializing an array of say, 1000 JSON objects with 5 properties each? My iPhone domain model is basically a copy of the DTOs my web app uses for serialization to javascript. They all use auto properties by habit. I'm conc...

Wanted: Very Fast Linked Lists in C

I am trying to implement a singly linked list in C. A common implementation that you see floating around the internet is something like typedef struct { int head; Node *tail; } Node; with methods like Node cons(int head, Node tail) { Node y; y.head = head; y.tail = malloc(sizeof(Node)); *y.tail = tail; } Performance is ...

Optimizing operations on lists

I need to process lots of data in lists and so have been looking at what the best way of doing this is using Python. The main ways I've come up with are using: - List comprehensions - generator expressions - functional style operations (map,filter etc.) I know generally list comprehensions are probably the most "Pythonic" method, b...

Query plan caching and performance

You can read the backstory if you want, after changing my nonclustered index to a clustered index things started running a lot faster. The problem with the initial query plan taking 2-3 seconds still remain though. However, the keep plan query hint improved that quite a bit. BACKSTORY I have an inverted index where I store things I wis...

nginx better than apache for dynamic content?

Hi, i have searched for this around the web and i can't find the right answer for my question. basically i want to know if i can get better performance with nginx than with apache (in php apps), and i'm not involving static content (where i know nginx is better). the sites are a widely collection of scripts with a lot of variables, us...

Scalability of Using MySQL as a Key/Value Database

I am interested to know the performance impacts of using MySQL as a key-value database vs. say Redis/MongoDB/CouchDB. I have used both Redis and CouchDB in the past so I'm very familiar with their use cases, and know that it's better to store key/value pairs in say NoSQL vs. MySQL. But here's the situation: the bulk of our applicatio...

Java based high volume transaction web application

Hi everyone, I have next to no experience dealing with high volume transactional websites and recently came across this interesting question. I am interested in knowing where the bottlenecks in a Java web application would occur under high load (thousands of requests per second). If someone could give me a high level approach to thinkin...

Bandwidth of CRC32 (or alternative hashing algorithms)

How fast can one compute CRC32 for hashing very large amounts of data? (order of magnitude GB per second) What about MD5? Other, faster hashing algorithms like adler32? Does anybody have real-world speed test results? ...

Can I use tmpfs in this way?

I have plenty of RAM on my development machine. Can I move my Rails' application sources to the tmpfs partition in order to gain performance boost because of in-memory storage which is order of magnitude faster than HDD? I understand that tmpfs is temporary storage by its nature BUT can I use it for this task if I'll write some script ...

How to tell what's causing slow HTML5 Canvas performance?

How can I tell if the canvas's slow performance is caused by the drawing itself, or the underlying logic that calculates what should be drawn and where? The second part of my question is: how to calculate canvas fps? Here's how I did it, seems logical to me, but I can be absolutely wrong too. Is this the right way to do it? var fps = ...

Is triple buffering really a free performance boost?

So I've been reading a lot about openGL and gpus and graphics in general, and triple buffering is semi-frequently mentioned as giving a free performance boost. I know why it helps; in effect, you can do v-sync without being limited to a framerate choice of 60 or 30 or 20 or 15 or etc, so you can actually achieve, say, 55fps. But is there...

sql server 2008 LIKE performance

I've noticed that the first sql statement with LIKE on a large table runs very slowly (around 20 minutes) but every subsequent one very very fast (a few seconds), even if the strings searched for are completely different from the initial one (the first string 'ability%', the second 'su_mit%') Does sql server store the results of table ...

SQL: Performance comparison for exclusion (Join vs Not in)

Hello, I am curious on the most efficient way to query exclusion on sql. E.g. There are 2 tables (tableA and tableB) which can be joined on 1 column (col1). I want to display the data of tableA for all the rows which col1 does not exist in tableB. (So, in other words, tableB contains a subset of col1 of tableA. And I want to display t...

Memcached vs SQL Server cache

I've been reading a lot of articles that suggest putting a Memcached (or Velocity, etc) in front of a database is more efficient than hitting the database directly. It will reduce the number of hits on the database by looking up the data in a memory cache, which is faster than hitting the database. However, SQL Server has it's own memo...

Drupal 5.x site shows > 550 MB memory consumption of every page. How to speed up Drupal 5.x site.

I developed a site in Drupal 5.x and now its done and working fine, but its very slow. Working fast some time, but for imp modules it takes time. When I see the performance logs, its consuming my memory for 150 MB per page MINIMUM. This is the minimum. Most of the pages its shows 550~700 MB consumption. What I did till now. Javascr...

Compression makes slow response time

I have reacently activated gzip compression on an IIS6 webserver. I use both static and dynamic compression (static level 10 and dyamic level 1). This was a measure to increase server response time performance. However it seems like the page loads slower after the compression was activated. All my measurements in firebug indicate this. ...

Query Execution time in Management Studio & profiler. What does it measure?

I have my production SQL Server in a remote data center(and the web servers are located in the same data center). During development we observed that one particular view takes a long time to execute (about 60-80 secs) in our local development SQL Server, and we were OK with it.It was promoted to production and when I run the same query o...

Whats better in terms of performance?

Hi What is better. You have have say 20 javascript files. 10 are shared among all pages. So they would be in the master page. Now how about these other 10? Say one pages uses 4/10 another uses 4/10 and another uses 2/10. Would it a) be better to combine them all into one file(dynamically of course) so only one http request would be m...

SQL Server Profiler issue

Hello everyone, I am using SQL Server 2008 Enterprise and I want to use SQL Server profiler to capture deadlock event only. And when deadlock occurs and event captured, I will stop SQL Server profiler. My question is, since I launched SQL Server profiler, and before deadlock occur (event captured), any impact (more about performance im...