/turboCollections

TurboCollections is a collection of custom data structures implemented in C# that provide optimized performance compared to the standard collections in the .NET framework. This project includes the `TurboList<T>` class, which is an optimized implementation of a generic list.

Primary LanguageC#

TurboCollections

TurboCollections is a collection of custom data structures implemented in C# that provide optimized performance compared to the standard collections in the .NET framework. This project includes the TurboList<T> class, which is an optimized implementation of a generic list.

Table of Contents

Installation

To use the TurboCollections library in your own project, follow these steps:

  1. Clone the repository: git clone https://github.com/Armin-AF/turboCollections.git
  2. Add the necessary files to your project.
  3. Reference the TurboCollections namespace in your code.
  4. Build and run your project.

Usage

Provide instructions on how to use the TurboCollections library and demonstrate its advantages over standard collections. You can include code examples and explanations of the improved performance.

TurboList

The TurboList<T> class is an optimized implementation of a generic list in TurboCollections. It provides the following features:

  • Dynamic resizing of the internal array to accommodate new elements.
  • Efficient memory usage by minimizing reallocations.
  • Fast access to elements by index.
  • Support for common list operations like adding, removing, setting, and clearing elements.
  • Additional methods for searching, checking containment, and iterating.

Contributing

Contributions to this project are welcome. To contribute, follow these steps:

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes and commit them.
  4. Push your changes to your forked repository.
  5. Submit a pull request.