Re: What Impact Do Static HashTables and Classes have on the CPU?
- From: "Alberto Poblacion" <earthling-quitaestoparacontestar@xxxxxxxxxxxxx>
- Date: Wed, 28 Mar 2007 17:00:22 +0200
"Mark S." <marks@xxxxxxxxx> wrote in message news:uvrMDfUcHHA.1216@xxxxxxxxxxxxxxxxxxxxxxx
I've written a high performance web app with C# and it completely relies on static hash tables (using sync) [...] any suggestions on how I might be able to increase the number of requests per second?
If you are using System.Collections.Hashtable objects and mostly reading them, you can make use of the characteristic of the Hashtable of being thread-safe for multiple readers or only one writer. Instead of using sync, use a ReaderWrtiterLock, which will give you better concurrency.
.
- Follow-Ups:
- Re: What Impact Do Static HashTables and Classes have on the CPU?
- From: Jon Skeet [C# MVP]
- Re: What Impact Do Static HashTables and Classes have on the CPU?
- From: Mark S.
- Re: What Impact Do Static HashTables and Classes have on the CPU?
- References:
- Prev by Date: Re: Web browser automation in .NET
- Next by Date: Re: Assigning value to parameter in stored procedure
- Previous by thread: Re: What Impact Do Static HashTables and Classes have on the CPU?
- Next by thread: Re: What Impact Do Static HashTables and Classes have on the CPU?
- Index(es):
Relevant Pages
|