Re:RoslynLinqRewrite – Compiles C# by rewriting and optimisi...
by olmo on Wednesday September 21, 2016 @01:34AM
(#12545672)
It's true, but 95% of the cases you get much better results by using the right data structures (dictionaries) instead of transforming queries to loops. Still is a very cool thing, hopefully is standardized into Roslyn
[ Parent
| on HN ]
Re:RoslynLinqRewrite – Compiles C# by rewriting and optimisi...
by jsingleton on Wednesday September 21, 2016 @07:55AM
(#12547302)
Using the best structure is a good idea but simple LINQ is very readable if performance isn't a big concern.
BTW I cover this in my recent book: https://www.packtpub.com/mapt/book/Application%20Development...
You could try code samples and benchmarks: https://github.com/PacktPublishing/ASP.NET-Core-1.0-High-Per...
Re:RoslynLinqRewrite – Compiles C# by rewriting and optimisi...
by platz on Wednesday September 21, 2016 @01:37AM
(#12545679)
How would the provided example be better realized as a dictionary?
Re:RoslynLinqRewrite – Compiles C# by rewriting and optimisi...
by SideburnsOfDoom on Wednesday September 21, 2016 @03:59AM
(#12546230)
All true, but the example is a demo that doesn't do anything useful, and not typical code.