TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

RoslynLinqRewrite – Compiles C# by rewriting and optimising LINQ expressions

76 点作者 Halienja超过 8 年前

5 条评论

mwsherman超过 8 年前
Looks nice. A lot of people don’t realize how expensive Linq can be. That said, my preference for most (source) codegen is in the editor – this would be nice as an editor plugin.
评论 #12545502 未加载
评论 #12545672 未加载
damieng超过 8 年前
Worth bearing in mind that this only helps if you are using LINQ against in-memory objects (i.e. LINQ to Objects). Depending on how this detects IQueryable providers it will either skip it, break it or worse of all silently 'work' but pull all the remote data into memory for evaluation. I'm hoping it's skip.
评论 #12547781 未加载
duaneb超过 8 年前
Looks cool!<p>&gt; No support for F#<p>Why is this? Is it a macro (as opposed to working with bytecode directly)?
评论 #12545489 未加载
yread超过 8 年前
It would be more interesting to apply it selectively to LINQ on hot code paths and keep LINQ&#x27;s readability where performance and allocations are not a concern
评论 #12546186 未加载
CurtHagenlocher超过 8 年前
If only C# had LISP-style macros... .