Re: What Impact Do Static HashTables and Classes have on the CPU?

Tech-Archive recommends: Fix windows errors by optimizing your registry



"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.

.



Relevant Pages

  • Re: The difference of request dir between AS and Deadline I/O scheduler?
    ... Does this mean AS works better when requests are distincted by sync ... It means that there's a key distinction between requests. ... But in Deadline, the requests are grouped by read and write. ...
    (Linux-Kernel)
  • Re: IO scheduler based IO controller V10
    ... only set the slice when the first request is actually serviced, ... other is to drain async requests completely before starting sync ones. ... its writeback cache. ...
    (Linux-Kernel)
  • Re: Can anyone advise on 445 syncs?
    ... to invite these incoming sync packets? ... > I've been getting tons of 445 sync requests and have blocked both incoming ... > to follow web page requests sometimes interrupting them with a "packet contains ... Being on dialup means nothing, it the same internet connection as a T1, ...
    (comp.security.misc)
  • Re: Can anyone advise on 445 syncs?
    ... to invite these incoming sync packets? ... > I've been getting tons of 445 sync requests and have blocked both incoming ... > to follow web page requests sometimes interrupting them with a "packet contains ... Being on dialup means nothing, it the same internet connection as a T1, ...
    (comp.security.misc)
  • Re: [RFC PATCH] block: Fix bio merge induced high I/O latency
    ... is that you just don't want to have sync apps blocked waiting for async ... are treated as async. ... Small I/O requests ... I/O requests caused by major page faults, ...
    (Linux-Kernel)