Title: Rule to recommend against Lists when using += with Array objects · Issue #806 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: Rule to recommend against Lists when using += with Array objects · Issue #806 · PowerShell/PSScriptAnalyzer
X Title: Rule to recommend against Lists when using += with Array objects · Issue #806 · PowerShell/PSScriptAnalyzer
Description: As some of the below articles note, using += with an Array object can be very slow, as it copies the Array into a new Array in-memory. The recommendation is very often to use List objects instead of Arrays to avoid this problem. Thoughts...
Open Graph Description: As some of the below articles note, using += with an Array object can be very slow, as it copies the Array into a new Array in-memory. The recommendation is very often to use List objects instead o...
X Description: As some of the below articles note, using += with an Array object can be very slow, as it copies the Array into a new Array in-memory. The recommendation is very often to use List objects instead o...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/806
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rule to recommend against Lists when using += with Array objects","articleBody":"As some of the below articles note, using `+=` with an Array object can be very slow, as it copies the Array into a new Array in-memory. The recommendation is very often to use List objects instead of Arrays to avoid this problem.\r\n\r\nThoughts?\r\n\r\nhttps://stackoverflow.com/questions/14620290/powershell-array-add-vs\r\nhttps://powershell.org/2013/09/16/powershell-performance-the-operator-and-when-to-avoid-it/\r\n","author":{"url":"https://github.com/joeyaiello","@type":"Person","name":"joeyaiello"},"datePublished":"2017-07-31T17:30:20Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/806"}
| 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:00d0715e-ae39-730d-fd97-00c6d7346cfe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E758:158743:46E95C:5D2CCE:6AFCEAE7 |
| html-safe-nonce | 38f2434f6b16266a477a27097f53edc5944a187061024a2f970cf687e42259f3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzU4OjE1ODc0Mzo0NkU5NUM6NUQyQ0NFOjZBRkNFQUU3IiwidmlzaXRvcl9pZCI6IjQ2NjI4OTY4OTA5Nzc1MTIxNjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9d0f09a28aa9419161fbc88ab832dc1f513fe9c75d87082889f071aed5ae9c27 |
| hovercard-subject-tag | issue:246826569 |
| 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/PSScriptAnalyzer/806/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4f97f1431c5fc396a7d598d1e92b6031384dd3b792b49d7134443a0a2f3040c1/PowerShell/PSScriptAnalyzer/issues/806 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4f97f1431c5fc396a7d598d1e92b6031384dd3b792b49d7134443a0a2f3040c1/PowerShell/PSScriptAnalyzer/issues/806 |
| og:image:alt | As some of the below articles note, using += with an Array object can be very slow, as it copies the Array into a new Array in-memory. The recommendation is very often to use List objects instead o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | joeyaiello |
| hostname | github.com |
| expected-hostname | github.com |
| None | 99aede4c5f55ec5cf06666a8c9e03ebf9f85f7231223e7f1c38c16e5504835b3 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PSScriptAnalyzer git https://github.com/PowerShell/PSScriptAnalyzer.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 33149177 |
| octolytics-dimension-repository_nwo | PowerShell/PSScriptAnalyzer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33149177 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PSScriptAnalyzer |
| 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 | ecfd63ca125ec74b42f74eeb158b3fa081c8c497 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width