{"id":5816,"date":"2022-07-07T00:03:52","date_gmt":"2022-07-07T00:03:52","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=5816"},"modified":"2022-07-07T00:03:52","modified_gmt":"2022-07-07T00:03:52","slug":"speeding-up-addition-in-arrays-in-powershell","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/speeding-up-addition-in-arrays-in-powershell","title":{"rendered":"Speeding up Addition in Arrays in Powershell"},"content":{"rendered":"<p class=\"x_MsoNormal\">Note that the use of the += addition operator on an array in powershell can run \/very\/ slowly if you\u2019re working with a large array. This is because under the hood an array is allocated a fixed chunk of memory and modifying the array requires creating a newly sized fixed chunk of memory and copying all of the data into the new memory.<\/p><p class=\"x_MsoNormal\"><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/scripting\/dev-cross-plat\/performance\/script-authoring-considerations?view=powershell-7.2#array-addition\" target=\"_blank\" rel=\"noopener noreferrer\" data-auth=\"NotApplicable\" data-linkindex=\"0\">https:\/\/docs.microsoft.com\/en-us\/powershell\/scripting\/dev-cross-plat\/performance\/script-authoring-considerations?view=powershell-7.2#array-addition<\/a><\/p><p class=\"x_MsoNormal\">There are two ways of working around this. Either by using a c# type System.Collection.ArrayList or by using a neat powershell trick (below). If you\u2019re only working on small arrays the overhead of this is going to be negligible and may not warrant rewriting to an arraylist.<\/p><p class=\"x_MsoNormal\" aria-hidden=\"true\">\u00a0<\/p><p>[pastacode lang=&#8221;powershell&#8221; manual=&#8221;Slow%20Example%0A%0A%23%20an%20empty%20array%20is%20used%20as%20a%20bucket%20to%20collect%20results%3A%0A%0A%24bucket%C2%A0%3D%C2%A0%40()%0A%0A%0A%0A%0A%23%20use%20a%20stopwatch%20to%20measure%20performance%0A%0A%24stopwatch%C2%A0%3D%C2%A0%5BSystem.Diagnostics.Stopwatch%5D%3A%3AStartNew()%0A%0A%0A%0A%0A%23%20a%20loop%20does%20something%2C%20i.e.%20scans%20computers%2C%20processes%20database%20records%2C%0A%0A%23%20examines%20files%2C%20etc.%3A%0A%0A1..10000%C2%A0%7C%C2%A0Foreach-Object%C2%A0%7B%0A%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%23%20result%20are%20added%20to%20the%20bucket%20using%20the%20%22%2B%3D%22%20operator%0A%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%24bucket%C2%A0%2B%3D%C2%A0%22I%20am%20adding%C2%A0%24_%22%0A%0A%7D%0A%0A%0A%0A%0A%23%20all%20results%20end%20up%20in%20the%20array%3A%0A%0A%24report%C2%A0%3D%C2%A0&#8217;%7B0%7D%20elements%20collected%20in%20%7B1%3An1%7D%20seconds&#8217;%0A%0A%24report%C2%A0-f%C2%A0%24bucket.Count%2C%C2%A0%24stopwatch.Elapsed.TotalSeconds%0A%0A%0A%0A%0A10000%20elements%20collected%20in%205.2%20seconds%0A%0A%0A%0A%0AFast%20example%0A%0A%0A%0A%0A%23%20an%20empty%20ArrayList%20is%20used%20as%20a%20bucket%20to%20collect%20results%3A%0A%0A%24bucket%C2%A0%3D%C2%A0%5BSystem.Collections.ArrayList%5D%40()%0A%0A%0A%0A%0A%23%20use%20a%20stopwatch%20to%20measure%20performance%0A%0A%24stopwatch%C2%A0%3D%C2%A0%5BSystem.Diagnostics.Stopwatch%5D%3A%3AStartNew()%0A%0A%0A%0A%0A%23%20a%20loop%20does%20something%2C%20i.e.%20scans%20computers%2C%20processes%20database%20records%2C%0A%0A%23%20examines%20files%2C%20etc.%3A%0A%0A1..10000%C2%A0%7C%C2%A0Foreach-Object%C2%A0%7B%0A%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%23%20result%20are%20added%20using%20the%20Add()%20method%0A%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%24null%C2%A0%3D%C2%A0%24bucket.Add(%22I%20am%20adding%C2%A0%24_%22)%0A%0A%7D%0A%0A%0A%0A%0A%23%20all%20results%20end%20up%20in%20the%20array%3A%0A%0A%24report%C2%A0%3D%C2%A0&#8217;%7B0%7D%20elements%20collected%20in%20%7B1%3An1%7D%20seconds&#8217;%0A%0A%24report%C2%A0-f%C2%A0%24bucket.Count%2C%C2%A0%24stopwatch.Elapsed.TotalSeconds%0A%0A%0A%0A%0A10000%20elements%20collected%20in%201.7%20seconds%0A%0A%0A%0A%0AEven%20faster%20example%0A%0A%23%20use%20a%20stopwatch%20to%20measure%20performance%0A%0A%24stopwatch%C2%A0%3D%C2%A0%5BSystem.Diagnostics.Stopwatch%5D%3A%3AStartNew()%0A%0A%0A%0A%0A%23%20let%20PowerShell%20handle%20object%20creation%0A%0A%24bucket%C2%A0%3D%C2%A01..10000%C2%A0%7C%C2%A0Foreach-Object%C2%A0%7B%0A%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%23%20simply%20return%20the%20result%0A%0A%C2%A0%C2%A0%C2%A0%C2%A0%23%20PowerShell%20wraps%20all%20results%20in%20an%20array%20automatically%0A%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%22I%20am%20adding%C2%A0%24_%22%0A%0A%7D%0A%0A%0A%0A%0A%23%20all%20results%20end%20up%20in%20the%20array%3A%0A%0A%24report%C2%A0%3D%C2%A0&#8217;%7B0%7D%20elements%20collected%20in%20%7B1%3An1%7D%20seconds&#8217;%0A%0A%24report%C2%A0-f%C2%A0%24bucket.Count%2C%C2%A0%24stopwatch.Elapsed.TotalSeconds%0A%0A%0A%0A%0A10000%20elements%20collected%20in%200.8%20seconds&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;\/]<\/p>","protected":false},"excerpt":{"rendered":"<p>Note that the use of the += addition operator on an array in powershell can run \/very\/ slowly if you\u2019re working with a large array. This is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5816","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Note that the use of the += addition operator on an array in powershell can run \/very\/ slowly if you\u2019re working with a large array. This is because under the hood an array is allocated a fixed chunk of memory and modifying the array requires creating a newly sized fixed chunk of memory and copying\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"paris\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/pariswells.com\/blog\/research\/speeding-up-addition-in-arrays-in-powershell\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Welcome to Pariswells.com |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Speeding up Addition in Arrays in Powershell | Welcome to Pariswells.com\" \/>\n\t\t<meta property=\"og:description\" content=\"Note that the use of the += addition operator on an array in powershell can run \/very\/ slowly if you\u2019re working with a large array. This is because under the hood an array is allocated a fixed chunk of memory and modifying the array requires creating a newly sized fixed chunk of memory and copying\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/pariswells.com\/blog\/research\/speeding-up-addition-in-arrays-in-powershell\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-07-07T00:03:52+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-07-07T00:03:52+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Speeding up Addition in Arrays in Powershell | Welcome to Pariswells.com\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Note that the use of the += addition operator on an array in powershell can run \/very\/ slowly if you\u2019re working with a large array. This is because under the hood an array is allocated a fixed chunk of memory and modifying the array requires creating a newly sized fixed chunk of memory and copying\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/speeding-up-addition-in-arrays-in-powershell#article\",\"name\":\"Speeding up Addition in Arrays in Powershell | Welcome to Pariswells.com\",\"headline\":\"Speeding up Addition in Arrays in Powershell\",\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"},\"datePublished\":\"2022-07-07T00:03:52+00:00\",\"dateModified\":\"2022-07-07T00:03:52+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/speeding-up-addition-in-arrays-in-powershell#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/speeding-up-addition-in-arrays-in-powershell#webpage\"},\"articleSection\":\"Research\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/speeding-up-addition-in-arrays-in-powershell#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"position\":2,\"name\":\"Research\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/speeding-up-addition-in-arrays-in-powershell#listItem\",\"name\":\"Speeding up Addition in Arrays in Powershell\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/speeding-up-addition-in-arrays-in-powershell#listItem\",\"position\":3,\"name\":\"Speeding up Addition in Arrays in Powershell\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\",\"name\":\"Welcome to Pariswells.com\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris\",\"name\":\"paris\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/speeding-up-addition-in-arrays-in-powershell#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"paris\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/speeding-up-addition-in-arrays-in-powershell#webpage\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/speeding-up-addition-in-arrays-in-powershell\",\"name\":\"Speeding up Addition in Arrays in Powershell | Welcome to Pariswells.com\",\"description\":\"Note that the use of the += addition operator on an array in powershell can run \\\/very\\\/ slowly if you\\u2019re working with a large array. This is because under the hood an array is allocated a fixed chunk of memory and modifying the array requires creating a newly sized fixed chunk of memory and copying\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/speeding-up-addition-in-arrays-in-powershell#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"datePublished\":\"2022-07-07T00:03:52+00:00\",\"dateModified\":\"2022-07-07T00:03:52+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\",\"name\":\"Welcome to Pariswells.com\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Speeding up Addition in Arrays in Powershell | Welcome to Pariswells.com","description":"Note that the use of the += addition operator on an array in powershell can run \/very\/ slowly if you\u2019re working with a large array. This is because under the hood an array is allocated a fixed chunk of memory and modifying the array requires creating a newly sized fixed chunk of memory and copying","canonical_url":"https:\/\/pariswells.com\/blog\/research\/speeding-up-addition-in-arrays-in-powershell","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pariswells.com\/blog\/research\/speeding-up-addition-in-arrays-in-powershell#article","name":"Speeding up Addition in Arrays in Powershell | Welcome to Pariswells.com","headline":"Speeding up Addition in Arrays in Powershell","author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"},"datePublished":"2022-07-07T00:03:52+00:00","dateModified":"2022-07-07T00:03:52+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/pariswells.com\/blog\/research\/speeding-up-addition-in-arrays-in-powershell#webpage"},"isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/research\/speeding-up-addition-in-arrays-in-powershell#webpage"},"articleSection":"Research"},{"@type":"BreadcrumbList","@id":"https:\/\/pariswells.com\/blog\/research\/speeding-up-addition-in-arrays-in-powershell#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/pariswells.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","position":2,"name":"Research","item":"https:\/\/pariswells.com\/blog\/category\/research","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/speeding-up-addition-in-arrays-in-powershell#listItem","name":"Speeding up Addition in Arrays in Powershell"},"previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/speeding-up-addition-in-arrays-in-powershell#listItem","position":3,"name":"Speeding up Addition in Arrays in Powershell","previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}}]},{"@type":"Organization","@id":"https:\/\/pariswells.com\/blog\/#organization","name":"Welcome to Pariswells.com","url":"https:\/\/pariswells.com\/blog\/"},{"@type":"Person","@id":"https:\/\/pariswells.com\/blog\/author\/paris#author","url":"https:\/\/pariswells.com\/blog\/author\/paris","name":"paris","image":{"@type":"ImageObject","@id":"https:\/\/pariswells.com\/blog\/research\/speeding-up-addition-in-arrays-in-powershell#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g","width":96,"height":96,"caption":"paris"}},{"@type":"WebPage","@id":"https:\/\/pariswells.com\/blog\/research\/speeding-up-addition-in-arrays-in-powershell#webpage","url":"https:\/\/pariswells.com\/blog\/research\/speeding-up-addition-in-arrays-in-powershell","name":"Speeding up Addition in Arrays in Powershell | Welcome to Pariswells.com","description":"Note that the use of the += addition operator on an array in powershell can run \/very\/ slowly if you\u2019re working with a large array. This is because under the hood an array is allocated a fixed chunk of memory and modifying the array requires creating a newly sized fixed chunk of memory and copying","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/pariswells.com\/blog\/research\/speeding-up-addition-in-arrays-in-powershell#breadcrumblist"},"author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"creator":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"datePublished":"2022-07-07T00:03:52+00:00","dateModified":"2022-07-07T00:03:52+00:00"},{"@type":"WebSite","@id":"https:\/\/pariswells.com\/blog\/#website","url":"https:\/\/pariswells.com\/blog\/","name":"Welcome to Pariswells.com","inLanguage":"en-US","publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Welcome to Pariswells.com |","og:type":"article","og:title":"Speeding up Addition in Arrays in Powershell | Welcome to Pariswells.com","og:description":"Note that the use of the += addition operator on an array in powershell can run \/very\/ slowly if you\u2019re working with a large array. This is because under the hood an array is allocated a fixed chunk of memory and modifying the array requires creating a newly sized fixed chunk of memory and copying","og:url":"https:\/\/pariswells.com\/blog\/research\/speeding-up-addition-in-arrays-in-powershell","article:published_time":"2022-07-07T00:03:52+00:00","article:modified_time":"2022-07-07T00:03:52+00:00","twitter:card":"summary","twitter:title":"Speeding up Addition in Arrays in Powershell | Welcome to Pariswells.com","twitter:description":"Note that the use of the += addition operator on an array in powershell can run \/very\/ slowly if you\u2019re working with a large array. This is because under the hood an array is allocated a fixed chunk of memory and modifying the array requires creating a newly sized fixed chunk of memory and copying"},"aioseo_meta_data":{"post_id":"5816","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-07-07 00:02:43","updated":"2022-09-22 09:00:04","primary_term":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\/category\/research\" title=\"Research\">Research<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSpeeding up Addition in Arrays in Powershell\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/pariswells.com\/blog"},{"label":"Research","link":"https:\/\/pariswells.com\/blog\/category\/research"},{"label":"Speeding up Addition in Arrays in Powershell","link":"https:\/\/pariswells.com\/blog\/research\/speeding-up-addition-in-arrays-in-powershell"}],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=5816"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5816\/revisions"}],"predecessor-version":[{"id":5817,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5816\/revisions\/5817"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=5816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=5816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=5816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}