performance

c# performance: type comparison vs. string comparison

Which is faster? This: bool isEqual = (MyObject1 is MyObject2) Or this: bool isEqual = ("blah" == "blah1") It would be helpful to figure out which one is faster. Obviously, if you apply .ToUpper() to each side of the string comparison like programmers often do, that would require reallocating memory which affects performance. But h...

If I'm posting a question about Oracle SQL query performance, what should I include in my question?

If I am posting a question about a query against an Oracle database, what should I include in my question so that people have a chance to answer me? How should I get this information? Simply providing the poorly performing query may not be enough. ...

PHP 5 Reflection API performance

I'm currently considering the use of Reflection classes (ReflectionClass and ReflectionMethod mainly) in my own MVC web framework, because I need to automatically instanciate controller classes and invoke their methods without any required configuration ("convention over configuration" approach). I'm concerned about performance, even th...

What is WCF's performance like compared to other solutions for high volume programs?

What is WCF performance like compared to other solutions such as ASMX or even a custom module? Example: An online multi-player video game based on AJAX with JSON with data always going back and forth with the browser and server with hundreds of thousands to millions of users. ...

How do I count bytecodes in Python so I can modify sys.setcheckinterval appropriately

I have a port scanning application that uses work queues and threads, it uses simple TCP connections and spends a lot of time waiting for packets to come back (up to half a second). Thus the threads don't need to fully execute (i.e. first half sends a packet, context switch, does stuff, comes back to thread which has network data waiting...

Is there a "result server" that store performance test result, with good analysis tool?

I need a "result server" that can store my raw test data (server cpu, memory usage, etc), create report template (e.g. user number vs response time), generate live-reports base on templates, and perform complicated analysis (such as 70/80/90 percentile charts, data distribution comparison between test, etc.) ...

What is the best way to store historical data in SQL Server 2005/2008?

My simplified and contrived example is the following:- Lets say that I want to measure and store the temperature (and other values) of all the worlds' towns on a daily basis. I am looking for an optimal way of storing the data so that it is just as easy to get the current temperature in all the towns, as it is to get all the temperature...

What is the best query to get the current records in an archive table (SQL Server 2005/2008)

Example There is an application that measures temperature in each town of the world. Each measurement is taken every 5 minutes and written in to the Measurement table. CREATE TABLE [dbo].[Measurement]( [MeasurementID] [int] IDENTITY(1,1) NOT NULL, [Town] [varchar](50) NOT NULL, [Date] [datetime] NOT NULL, [Temp] [int] N...

WPF ListView Very Slow Performance - Why? (ElementHost, or Other Reason?)

I have a Windows Forms app, that has a single ElementHost containing a WPF UserControl... in my WPF, I have a VERY simple ListView: <ListView Margin="4" ItemsSource="{Binding Notifications}"> <ListView.View> <GridView> <GridViewColumn Header="FirstName" DisplayMemberBinding="{Binding FirstName}" /> <GridViewColumn H...

Performance comparison of Thrift, Protocol Buffers, JSON, EJB, other?

We're looking into transport/protocol solutions and were about to do various performance tests, so I thought I'd check with the community if they've already done this: Has anyone done server performance tests for simple echo services as well as serialization/deserialization for various messages sizes comparing EJB3, Thrift, and Protocol...

Mips calculation for embedded software

Hello, I have been recently (and repeatedly) asked by customers about MIPS needed to run our software. Usually we was able to get rid of this questions by explaining the customer that this is really depend on the cpu/os/hw (our software is highly portable) and/or use case (i.e. how our software is used). But I have a last one not o...

How do I sync the results of a Web service with a DB?

I am looking for a way to quickly compare the state of a database table with the results of a Web service call. I need to make sure that all records returned by the Web service call exist in the database, and any records in the database that are no longer in the Web service response are removed from the table. I have to problems to sol...

asp.net remove unused httpmodules

I am looking at the performance suggestions lots of pages have about asp.net. Specifically the remove unused httpmodules part: <httpModules> <add name="OutputCache" type="System.Web.Caching.OutputCacheModule"/> <add name="Session" type="System.Web.SessionState.SessionStateModule"/> <add name="WindowsAuthentication" type="Syste...

Website performance measurement

Hi, I need a tool to measure a website's performance that's free and does not require any changes to be made to the code (jsp asp pages). All help is appreciated. Thanks, Adhir ...

Can the DMV views get reset without kicking eveyone out of the db?

I have seen posts that show three ways to reset the DMV views: Reset the SQL Service Detatch the database Close the database All of these methods seem to require taking the system off-line for a few moments. Is there a way to reset the statistics on demand without interrupting use of the database? When we have odd performance issue...

How to compress http responses using mongrel

I have a rails app that uses heavily js (over 1MB total). I'd like to compress them in order to reduce the overall load time of the site. I did a fast search and found that most browsers accept compressed content. I'd like to know what can I do to make my rails app send compressed content and thus make the user experience better. ...

Best ways to Improve Sharepoint 2007 Performance?

OK we are at the end of our rope here, and I’d really appreciate feedback from the SO community. Our basic issue is slow performance by our MOSS-based intranet-- Some environment info: We have a MOSS standard edition for a collaboration based site. The sitedb is 29 Gb we have two VMWare based front end servers. (2x 32bit CPUS ...

How slow are Java exceptions?

Question: Is excepion handling in Java actually slow? Conventinal wisdom, as well as a lot of Google results, says that exceptional logic shouldn't be used for normal program flow in Java. Two reasons are usually given, 1) its really slow - even an order of magnitude slower than regular code (the reasons given vary), and 2) its messy ...

ArrayList vs. Vectors in Java if thread safety isn't a concern

Is there really that much of a difference between the performance of Vectors and ArrayLists? Is it good practice to use ArrayLists at all times when thread safety isn't an issue? ...

Best way to periodically remove a set of records with LINQ to SQL

This is my first crack at a method that is run periodically during the lifetime of my ASP.NET application to clean up expired sessions stored in my database. It seems to work pretty well, but the software engineer in me doesn't feel "right" about this code. I've been working with LINQ to SQL for a few months now, but I'm not very confide...