performance

How to improve datagrid perfomace when using itemrenderer withing datagrid ?

For poor performance reasons, the DataGrid will cache checkboxes and reuse them for different rows. If you have 50 rows, it won't create 50 checkboxes. It will create as many checkboxes at are visible, plus a few more for padding, and then reuse them as you scroll. This is why you need to explicitly manage their state. How can improve i...

Bing Performance

Bing has been around for more than 2 months now.There has been some positive reviews about bing. Some experts in search areas have pointed out that Bing results are more relevant than Google's since its index is still not cluttered with unnecessary garbage. Does these claims have any truth behind them ? ...

how to do smooth scrolling in uiscrollview?

i am using apple's page control sample and showing three different types of views. the scrolling is very slow in device because i am having a uitable a 5 to 7 labels on my view.and everything is updating from database.how do i increase performance of my scrolling behaviour.so that it scrolls very fast in device. ...

What are the issues with non-static inner classes and serialization in Java

This morning my boss and I had a long and ultimately fruitless discussion about this, in the context of trying to diagnose performance problems with a web application. We didn't really come to any conclusions. I think we're right in thinking that Serializable non-static inner classes have issues, but we're not sure precisely what the i...

How to determine how long IIS takes to deliver a web page?

We use IIS servers and would like to know if there is a performance counter or something else which could help us determine how long it's taking to serve web pages (average, actual, whatever)? From the time the page is requested, to the time it has been sent out, how long was it? Is there anything in IIS which can give me this informat...

Use of * selector in style sheet to reset styles

At the moment I am just resetting the styles I need at the top of my style-sheet, like: html, body, div, fieldset, form, h1, h2, h3, h4, p, ul, li { margin: 0; padding: 0; } However, I have seen a lot of times that people use: * { margin: 0; padding: 0; } That does seem to make things easier, but somewhere else (don...

unique constraint in mysql

Hi, is a unique constraint an index by default? If not, does a unique constraint has the same performance results as an indexed column when using it in the "select .. where" clause? thanks ...

Parallelogram contains Point

What way is the fastest of deciding whether a point is inside a parallelogram/rhomboid? ...

Visualization of the timestamps in a call stack

I'm trying to tune the performance of my application. And I'm curious what methods are taking the longest to process, and thus should be looked over for any optimization opportunities. Are there any existing free tools that will help me visualize the call stack and how long each method is taking to complete? I'm thinking something that ...

Which is better performance in PHP?

I generally include 1 functions file into the hader of my site, now this site is pretty high traffic and I just like to make every little thing the best that I can, so my question here is, Is it better to include multiple smaller function type files with just the code that's needed for that page or does it really make no difference to j...

What is the InnoDB equivalent of MyISAM's key_buffer_size?

When using MyISAM the configuration setting key_buffer_size defines the size of the global buffer where MySQL caches frequently used blocks of index data. What is the corresponding setting for InnoDB? ...

If an externally included file (e.g. JavaScript or CSS) is included twice (or more) on a page will there be two (or more) web requests?

Let's say because of a conditional comment or just being careless the same included file is present for users of some browser or even all browsers. For example: <!--[if lte IE 8]> <script src="mygreatincludefile.js" type="text/javascript"></script> <![endif]--> <!--[if lte IE 6]> <script src="mygreatincludefile.js" type="text...

Question about freeing memory in a php script

I just saw this in a script mysql_free_result($rawdb); I saw it on a script somewhere, it ran a mysql query and saved the results to an array, right after adding to the array, it ran that which I assume free's the memory used from the mysql query. I am just asking to verify, is it a good idea to do this? I have a couple mysql querie...

Is it possible to shortcut a regular expression into matching?

I have a few regular expressions which are run against very long strings. However, the only part of the string which concerns the RE is near the beginning. Most of the REs are similar to: \\s+?(\\w+?).* The REs capture a few groups near the start, and don't care what the rest of the string is. For performance reasons, is there a way t...

Select query takes 3 seconds to pull 330 records. Need Optimization

Hi all, I have and normal select query that take nearly 3 seconds to execute (Select * from users). There are only 310 records in the user table. The configuration of the my production server is SQl Server Express Editon Server Configuration : Pentium 4 HT, 3 ghz , 2 GB ram Column Nam Type NULL COMMENTS Column Nam Type NULL...

Drawbacks to having (potentially) thousands of directories in a server instead of a database?

I'm trying to start using plain text files to store data on a server, rather than storing them all in a big MySQL database. The problem is that I would likely be generating thousands of folders and hundreds of thousands of files (if I ever have to scale). What are the problems with doing this? Does it get really slow? Is it about the sam...

How do I use PerformanceCounterType AverageTimer32?

I'm trying to measure the time it takes to execute a piece of code on my production server. I'd like to monitor this information in real time, so I decided to give Performance Analyser a whizz. I understand from MSDN that I need to create both an AverageTimer32 and an AverageBase performance counter, which I duly have. I increment the...

What is the difference between trace log and counter log?

In performance monitor, what is the difference between counter log and trace log? Any guidelines on when we should use each of them? ...

Which symmetric encryption algorithm is the fastest for smaller messages?

I am interested in help selecting one of the common symmetric encryption algorithms (Twofish, AES, etc) based on performance criteria (fastest encryption/decryption). We are currently leaning toward AES, but since the communications we are sending back and forth don't really need that level of encryption, a less secure algorithm would b...

WITH Common Table Expression vs. CREATE VIEW performance

I have several queries which use a WITH clause, or Common Table Expression, with a UNION ALL statement to recur through a table with a tree like structure in SQL server as described here. Would I see a difference in performance if I were to CREATE that same VIEW instead of including it with the WITH clause and having it generated every ...