---
title: "Discussion on \"Optimizing for multiple deletions in a large list\" | Hashnode"
description: "Discussion on \"Optimizing for multiple deletions in a large list\". The implementation of List<T> is optimized for looking up and adding items, so it doesn't perform as well as you might think when a large number of items are deleted from a list of hundreds of thousands.\nHere's an example with the following code:\nusi..."
url: "https://hashnode.com/posts/optimizing-for-multiple-deletions-in-a-large-list/6400504287d2ccf64394b7bb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Optimizing for multiple deletions in a large list](https://dimohy.slogs.dev/optimizing-for-multiple-deletions-in-a-large-list?utm_source=hashnode&utm_medium=feed)

The implementation of List<T> is optimized for looking up and adding items, so it doesn't perform as well as you might think when a large number of items are deleted from a list of hundreds of thousands. Here's an example with the following code: usi...

Mar 2, 2023 · 2 min read · dimohy.slogs.dev  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

[dimohy](https://hashnode.com/@dimohy)

@dimohy · Kyunggi, KR

  
[View profile](https://hashnode.com/@dimohy)

@csharp

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
