Re: Idea for ECMA/C# Standard - compile time hash for performance
- From: WXS <WXS@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 7 Apr 2005 13:41:03 -0700
In the example scenario the hash would be an integer value so it is a pretty
quick hash but still a hash none the less. We could optimize the hash
possibly but even that likely would not match an array lookup.
We have to be careful about our scaling as the software can be used on
clients or servers for what we are building, some clients have multiple
cpu's. In this scenario example we can't take advantage of parallelism for
updating the one particular object as that is a discrete message that needs
to be processed in order. We do take advantage of parallelism by having
different data feeds process on different threads but our net data rate and
CPU utilization is still the same on a single CPU box. On a multi-cpu it
helps but having to do those hashes and lookups are still pretty costly which
an array lookup could avoid.
"Bruce Wood" wrote:
> Two reactions.
>
> First, what is the nature of the keys you're using for lookup? Account
> numbers? Something else? You may be able to design a better data
> structure than a generic hash table to improve your speed.
>
> Second, can you take advantage of multithreading and parallelism, and
> in so doing move to a multi-CPU box and take advantage of those
> multiple CPUs? Of course, it all depends upon the nature of your
> problem: some problems don't scale well to parallel computing; others
> do.
>
>
.
- Follow-Ups:
- Re: Idea for ECMA/C# Standard - compile time hash for performance
- From: Bruce Wood
- Re: Idea for ECMA/C# Standard - compile time hash for performance
- References:
- Idea for ECMA/C# Standard - compile time hash for performance
- From: wxs
- Re: Idea for ECMA/C# Standard - compile time hash for performance
- From: Bruce Wood
- Re: Idea for ECMA/C# Standard - compile time hash for performance
- From: WXS
- Re: Idea for ECMA/C# Standard - compile time hash for performance
- From: WXS
- Re: Idea for ECMA/C# Standard - compile time hash for performance
- From: Bruce Wood
- Idea for ECMA/C# Standard - compile time hash for performance
- Prev by Date: Re: proper form Show()?
- Next by Date: Re: Fundamental question about bound controls
- Previous by thread: Re: Idea for ECMA/C# Standard - compile time hash for performance
- Next by thread: Re: Idea for ECMA/C# Standard - compile time hash for performance
- Index(es):
Relevant Pages
|
Loading