Re: Fast string operations
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Thu, 2 Jun 2005 07:22:43 +0100
Chad Myers <cmyers@xxxxxxxxxxxxxxxxxxxxx> wrote:
> Looping: I thought looping over arrays in managed code was "slow"
> (relatively speaking) because of all the bounds checking and whatnot. This
> is why people use unsafe code now and then to use pointer arithmetic to loop
> over arrays without all the unnecessary bounds checking.
It's not particularly slow, but it's actually irrelevant to what
Nicholas was suggesting - no arrays are created when you either use the
indexer or foreach.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.
- References:
- Fast string operations
- From: Chad Myers
- Re: Fast string operations
- From: Nicholas Paldino [.NET/C# MVP]
- Re: Fast string operations
- From: Chad Myers
- Re: Fast string operations
- From: Nicholas Paldino [.NET/C# MVP]
- Re: Fast string operations
- From: Chad Myers
- Fast string operations
- Prev by Date: Re: Diff. between singleton class and static class
- Next by Date: Re: How to Connect other Database in SQL server? connection error....
- Previous by thread: Re: Fast string operations
- Next by thread: Re: Fast string operations
- Index(es):
Relevant Pages
|