performance

How do you load-test your ASP.NET applications?

I'm not sure where to start when it comes to load-testing ASP.NET applications. My team doesn't use VSTS so that option is out. Does anyone have any good suggestions or experience they can share? ...

Performance impact of -fno-strict-aliasing

Is there any study or set of benchmarks showing the performance degradation due to specifying -fno-strict-aliasing in GCC (or equivalent in other compilers)? ...

ColdFusion 8 Performance & Load Monitoring

Question: What are tips and tools you can give us to help troubleshoot & monitor performance on ColdFusion 8 & the JRE? What we're currently doing: We currently use a combination of the following to help us, but feel like we're not really getting anywhere. I'd love to be able to have a peak into the JRE to see what's going on. Fusion...

What can cause a two minute delay in calling a webservice?

We have a .NET 3.5 app that calls a webservice on server. In nearly every installation of this app, the whole request/reply process takes about half a second. In one particular installation, these requests are mysteriously taking almost exactly 85 seconds (within half a second). My first thought was that the webservice client was ...

Implementing your own LINQ & IEnumerable<T>

In a project I am working on, there are really huge collections (1M-1B elements), and things are modified as collections mostly. It's a real-time app, and so the performance is paramount. For some of the operations, like Reverse, BinarySearch (possible?), etc will suffer more than others like Select, etc. Is it feasible to implement o...

Speedup Matlab to C++ Conversion

Hey there I have some Matlab image processing code which runs pretty slowly and I'm prepared to convert it over to C/C++. I don't really know much about how matlab works and how code is executed but I'm just interested to hear what kind of speedups I might expect. Clearly there are many variables that will affect this but I'm just loo...

JQuery Toggle Method Slow on 1000+ UL

Hello Everyone, I am working on a project where I am building a treeview and in some cases my tree could have a 1000+ child nodes. The problem is its really slow on like a IE7 machine. I'm not doing any kind of animation or anything, just simply trying to hide the next UL in the item using JQuery's toggle feature. Does anyone have an...

Loading data in to a combo box is slow.

I have a VB6 application with a search screen. On the search, I have 9 combo boxes. Some of the combo boxes only have a couple items, but some have a couple hundred items. It takes a long time (couple of seconds) to populate the data. Each combo box is configured the same: Sorted = False, Style = 2 - Dropdown List 3 of the combo bo...

metaprogramming with stored procedures?

This is going to be both a direct question and a discussion point. I'll ask the direct question first: Can a stored procedure create another stored procedure dynamically? (Personally I'm interested in SQL Server 2008, but in the interests of wider discussion will leave it open) Now to the reason I'm asking. Briefly (you can read more e...

[Rails] To go API or not

My company has this Huge Database that gets fed with (many) events from multiple sources, for monitoring and reporting purposes. So far, every new dashboard or graphic from the data is a new Rails app with extra tables in the Huge Database and full access to the database contents. Lately, there has been an idea floating around of having...

Why is Jquery slower in IE?

I have a complex ASP.NET page that makes heavy usage of jquery for DOM manipulation (no AJAX). The page is faster in Mozilla based browsers (Firefox) compared to IE 7 or 8. Are there some functions that are optimized for FF? ...

How can I improve this underperforming, terrible Serial Port code?

Hi, I have an ugly piece of Serial Port code which is very unstable. void port_DataReceived(object sender, SerialDataReceivedEventArgs e) { Thread.Sleep(100); while (port.BytesToRead > 0) { var count = port.BytesToRead; byte[] buffer = new byte[count]; var read = port.Read(buffer, 0, count); ...

Is there a generic alternative to the ListDictionary class?

I was looking at some sample code and in it they used a ListDictionary object to store a small amount of data (around 5-10 objects or so, but this numerber could change over time). The only issue I have with using this class is that, unlike everything else I've been doing, it's not generic. This means, and correct me if I'm wrong here, t...

IPC performance: Named Pipe vs Socket

Everywhere seems to say named pipes are fast whereas sockets are slow for ipc. How much greater is the speed advantage of named pipes vs local sockets on linux? I would prefer to use sockets because they can do two way communication and are very flexible but will choose speed over flexibility if it is a by considerable amount. Comments, ...

Java performance timing library

I frequent wrap code in a System.nanoTime() pair in order to timing it. Something like: long start = System.nanoTime(); methodToBeTimed(); long elapsedTime = System.nanoTime() - start; There is any good timing library that helps with this problem? Also homegrown code will be accepted. NB A profiler is not a solution here, since ...

Hibernate: bad performance when removing element from many-to-many relation.

I have to Classes (UserSet and User) which have a many-to-many relation (i.e. every user can belong to some UserSets). In the database there is a UserSet Table, a User Table and an 'in between' Table (UsersToUserSets). Now, if I want to remove a user from a UserSet by doing userSet.getUsers().remove(user); session.flush() Hibernate ...

Primary Key Effect on Performance in SQLite

Hi, I have an sqlite database used to store information about backup jobs. Each run, it increases approximately 25mb as a result of adding around 32,000 entries to a particular table. This table is a "map table" used to link certain info to records in another table... and it has a primary key (autoincrement int) that I don't use. sqli...

How to avoid jerky animations when adding several UserControls?

I have a Silverlight application where I periodically load more data and add it to the page as UserControls. I load about 25 objects in one set and create one UserControl for each object. This ends up taking quite a bit of time! Loading 25 objects takes 50-150ms purely in the UI. This makes my animations rather jerky, which is very much...

Faster (unsafe) BinaryReader in .NET

I came across a situation where I have a pretty big file that I need to read binary data from. Consequently, I realized that the default BinaryReader implementation in .NET is pretty slow. Upon looking at it with Reflector I came across this: public virtual int ReadInt32() { if (this.m_isMemoryStream) { MemoryStream str...

Stopwatch class for Java

Which Java class should you use for time performance measurements? (One could use any date/time class, but the reason I'm asking is in .Net there's a designated Stopwatch class for this purpose) ...