Title: LINQ in the compiler · Issue #13474 · PowerShell/PowerShell · GitHub
Open Graph Title: LINQ in the compiler · Issue #13474 · PowerShell/PowerShell
X Title: LINQ in the compiler · Issue #13474 · PowerShell/PowerShell
Description: Not really a bug but: PowerShell/src/System.Management.Automation/engine/parser/Compiler.cs Lines 952 to 955 in 904e551 private IEnumerable
Open Graph Description: Not really a bug but: PowerShell/src/System.Management.Automation/engine/parser/Compiler.cs Lines 952 to 955 in 904e551 private IEnumerable X Description: Not really a bug but: PowerShell/src/System.Management.Automation/engine/parser/Compiler.cs Lines 952 to 955 in 904e551 private IEnumerable<Expression> CompileInvocationArguments(IEnumerable&...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/13474
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"LINQ in the compiler","articleBody":"Not really a bug but:\r\n\r\nhttps://github.com/PowerShell/PowerShell/blob/904e5511789f0a8375c23c9a1ee59918be0a82a1/src/System.Management.Automation/engine/parser/Compiler.cs#L952-L955\r\n\r\nAnd the method in the select:\r\n\r\nhttps://github.com/PowerShell/PowerShell/blob/904e5511789f0a8375c23c9a1ee59918be0a82a1/src/System.Management.Automation/engine/parser/Compiler.cs#L941-L950\r\n\r\nThat method is used to compile method arguments, the result is then enumerated twice (once in the first highlighted line, one is the last):\r\n\r\nhttps://github.com/PowerShell/PowerShell/blob/904e5511789f0a8375c23c9a1ee59918be0a82a1/src/System.Management.Automation/engine/parser/Compiler.cs#L6338-L6344\r\n\r\nThis causes all method arguments to be compiled twice due to multiple enumeration. I'm not aware of any bugs due to this behavior, but it probably negatively impacts compile time for complicated member invocations. Also the method supplied to `Select` is not done in such a way that the delegate can be cached per instance by roslyn.","author":{"url":"https://github.com/SeeminglyScience","@type":"Person","name":"SeeminglyScience"},"datePublished":"2020-08-18T18:38:27Z","url":"https://github.com/PowerShell/PowerShell/issues/13474"}
react-profiling 0 react-import-map react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:41883b1c-7b89-35a8-8e74-d6a41e13ca0f current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id D288:3CC2A7:2CF577:40E05C:6AFDD40E html-safe-nonce 1540da90c2555973df8e83e4ad2c0e22c7f75a3ca0ff195d4e30f8c39d98aca0 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjg4OjNDQzJBNzoyQ0Y1Nzc6NDBFMDVDOjZBRkRENDBFIiwidmlzaXRvcl9pZCI6IjcxNjMyNDI1NDA3NzcxOTg2MDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac b27471cb56c838fe517519f799f4953c553cd91d396b1faa335717f3de67dc1c hovercard-subject-tag issue:681251056 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/13474/issue_layout twitter:image https://opengraph.githubassets.com/2fd349ba6328e17d07276aea6413b43780a92919f92af90cae62af9fca6bd0a5/PowerShell/PowerShell/issues/13474 twitter:card summary_large_image og:image https://opengraph.githubassets.com/2fd349ba6328e17d07276aea6413b43780a92919f92af90cae62af9fca6bd0a5/PowerShell/PowerShell/issues/13474 og:image:alt Not really a bug but: PowerShell/src/System.Management.Automation/engine/parser/Compiler.cs Lines 952 to 955 in 904e551 private IEnumerable og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username SeeminglyScience hostname github.com expected-hostname github.com None 26886a40b582b821a7a76351e0a2f42b6d6160854b6e2520db24f31fd7be5da7 turbo-cache-control no-preview go-import github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git octolytics-dimension-user_id 11524380 octolytics-dimension-user_login PowerShell octolytics-dimension-repository_id 49609581 octolytics-dimension-repository_nwo PowerShell/PowerShell octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 49609581 octolytics-dimension-repository_network_root_nwo PowerShell/PowerShell turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 68ebaa631a1d248d69ebde4b9c5defd3a19aeb2f ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
URLs of crawlers that visited me.