performance

Anonymous Instantiation Syntax - Good or Bad?

For quick tasks where I only use an instantiated object once, I am aware that I can do the following: int FooBarResult = (new Foo()).Bar(); I say this is perfectly acceptable with non-disposable objects and more readable than the alternative: Foo MyOnceUsedFoo = new Foo(); int FooBarResult = MyOnceUsedFoo.Bar(); Which do you use, a...

Why is function isprefix faster than Startswith in C#?

Hi, Does anyone know why C# (.NET)'s StartsWith function is considerably slower than IsPrefix? ...

Is there an updated version of "Writing Faster Managed Code: Know What Things Cost"?

The MSDN "Writing Faster Managed Code: Know What Things Cost" is pretty nice, but it was written for CLR v1 in 2003. Is there an updated version of this somewhere? ...

Performance tuning / Profiling of grails apps

What are your tricks / resources for performance tuning a grails app? I'm developing my first serious grails application, and got the basic functionality to work, so now I'd like to make it go faster. There are some operations that should not take very long but do, and an one that I know can never be fast, but which takes too long even ...

Something faster than MS Access 2007, Fast Portable Database Recommendations?

I'm using MS Access 2007 for insert and read data in my application but it's really slow. I've got a long running application and if I run it from the memory it takes about 5 minutes, with MS Access 2007 it takes about 13 minutes! I'm looking for a faster yet portable database option, I'm using .NET . I'm not looking for advanced rela...

Open source profiler for analyzing low-level architectural inefficiencies?

Modern processors use all sorts of tricks to bridge the gap between the large speed of their processing elements and the tardiness of the external memory. In performance-critical applications the way you structure your code can often have a considerable influence on its efficiency. For instance, researchers using the SLO analyzer were ...

Running 32bit .NET application in 64bit OS, is it really bad?

I understand that we can compile a .NET Application by targeting AnyCPU which will cause to run 32bit in a 32bit OS and 64bit in a 64bit OS. However there was a reported bug* on a 64bit OS that my app was giving an error and the solutions for that, I need to target x86. Now my question: Is it really bad to target x86 even though when y...

Is Generating Debug Info (pdb) making my application slower in runtime?

In .NET applications is generating debug info (pdb) making my application slower in runtime? or do they only comes into the play when the application crashes? ...

How much is too much JSON to send over to a web client?

So, my question is sort of based on experience, so I'm wondering about those out there who have tried to load datasets out there, what's a reasonable amount of data to load. My users have relatively big pipes, so I don't have to worry about modem users, but I do concern myself with processing times. I'm guessing my limit is somewhere in ...

Adding many frameworks to a Java application - will it have any negative side effects?

If one adds many framework dependencies to a Java application, will this increase its memory footprint drastically, because it preloads all libraries at startup or is that a more lazy behaviour which would load only the needed classes when you actually need it (e.g. import statements or even later)? Could adding many dependencies also h...

MySQL not using indexes ("Using filesort") when using ORDER BY ...

I'm hitting some quite major performances issues due to the use of "ORDER BY"-statements in my SQL-code. Everything is fine as long as I'm not using ORDER BY-statements in the SQL. However, once I introduce ORDER BY:s in the SQL code everything slows down dramatically due to the lack of correct indexing. One would assume that fixing th...

OutOfMemoryException in Regex Matches when processing large files

I've got an exception log from one of production code releases. System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at System.Text.RegularExpressions.Match..ctor(Regex regex, Int32 capcount, String text, Int32 begpos, Int32 len, Int32 startpos) at System.Text.RegularExpressions.RegexRunner.Init...

How to efficiently unpublish all datas from a particular user on a blogging application ?

We develop and operate a blogging application in which user data a scattered across many tables: - Blog - Article - Comment - Message - Trackback - 50 other tables. Users are able to close their account, and their account/contents must disappear from the site right away. For legal/contractual reasons, we also must be able to undelete...

Accessing TreeView with Javascript

I wish to minimize my server-client trips in this application and want to update the TreeView control through the Javascript. I am guess that the autopostback will have to be set to False. After the data is entered and the tree is ready to be saved, I will need to access the TreeView control on the server side in order to save it. Do...

ASP.NET TreeView performance

What would be the advisable thing to do to maximize the performance while using TreeView? By maximize the performance, i mean minimize the number of trips between client to server, ie postbacks. Would that mean then, that most of my Business logic will sit in the Javascript? What would be the compromise here? I am talking about ASP.n...

.net server control performance compromise

We are finding that for a large sets of data server controls (with the amount of postbacks) they do often times result in a very slow performance. While we don't want to do all the business logic in Javascript, we would like to speed things up. What were your solutions/ideas? AJAX? ...

Is there a lightweight datagrid alternative in Flex ?

What is the most performant way of displaying a table of data in Flex? Are there alternatives to the native Flex Datagrid Component? Alternatives that are noted for their rendering speed? Are there other ways to display a table? I have a datagrid with roughly 70 lines and 7 columns of simple text data. This is currently created and lo...

Web front end caching best practices for site?

Summary As I'm looking on stackoverflow and around the net, I find that there is a general lack of good documentation on best practices for caching a high performance site that uses sessions. It would be helpful if we can share some ideas around some basic building blocks particularly around caching. For the purpose of this discussion, ...

How much a performance boost is worthy/notable?

Everyone has their views on when and where to increase performance, so that's not of interest here, but I was wondering at what point a performance gain becomes worthy of promotion (say from branch development into the trunk, or enough to be placed on some progress report or whatever). For example my rule-of-thumb is a 10% performance b...

Overhead associated with OutputDebugString in release build.

Is there a significant overhead associated with calling OutputDebugString in release build? ...