Description
ImTools is a C# library of fast, memory-efficient immutable collections and helper data structures. It was split from the DryIoc project and is now also used in FastExpressionCompiler. The library runs on Windows, Linux and macOS, and it comes as a lib package and a code package. Its main type, ImHashMap, is an immutable hash map that can use Type keys with small string values, or int keys with string values. The README includes benchmarks that compare population, lookup and enumeration with earlier versions of ImTools, with ImmutableDictionary, and with Dictionary. The author notes that immutable collections are a different tool from Dictionary, DictionarySlim or ConcurrentDictionary, because they offer different thread-safety guarantees, and that ImmutableDictionary is the closest comparison. The README says ImHashMap holds up well against ImmutableDictionary and against Dictionary up to a certain size. The page also includes an end-to-end example. The repository is public on GitHub.…
Highlights
- Immutable and mutable collections in C#
- ImHashMap with Type and int keys
- Benchmarks against ImmutableDictionary and Dictionary
- Runs on Windows, Linux and macOS
- Available as lib and code packages
Ratings & Reviews
No ratings yet
Be the first to rate ImTools.
People also visit
ImTools FAQ
What is ImTools?
A C# library of fast, memory-efficient immutable and mutable collections, split out of the DryIoc project.
When should I use it?
The README says immutable collections suit cases with different thread-safety needs than Dictionary. It compares ImHashMap most closely with ImmutableDictionary.
Which platforms does it support?
Windows, Linux and macOS, according to the README.
Where are the benchmarks?
The README includes results for population, lookup and enumeration. The author notes that the benchmarks use the simplest API path.
How do I install it?
The README links a lib package and a code package. Check the repository for the install steps for your project.
What are the best ImTools alternatives?
Popular alternatives to ImTools include Limu, SharpToolsMCP and opensource.builders. See all ImTools alternatives





