>> Not exactly taxing, eh?
>
> Of course there are many ways to approach this in C# and most other
> languages. Using LINQ and and working in decimal datatype without error
> handling:
>
> private List<decimal> ParseAndSortValuesFromString1(string text)
> {
> return text.Split(' ').Select(s => Decimal.Parse(s)).OrderBy(s =>
> s).ToList();
> }
According to one of the guys I work with, "LINQ is great and everything,
but it makes the code extremely slow". Does anybody have any actual
/facts/ with which to confirm or refute this? I would have expected
there to be a fairly minimal speed difference...
Post a reply to this message
|