docs: update EN/RU quick start and tutorial with Fast Map-based lookup section; clarify performance benefit in README

This commit is contained in:
Sergey Penkovsky
2025-08-05 19:41:24 +03:00
parent ffff33c744
commit 52a55219ab
3 changed files with 22 additions and 0 deletions

View File

@@ -177,6 +177,14 @@ final service = scope.tryResolve<OptionalService>(); // returns null if not exis
---
### Fast Dependency Lookup (Performance Improvement)
> **Performance Note:**
> As of the latest version, CherryPick uses a Map-based resolver index for dependency lookup. This means calls to `resolve<T>()`, `tryResolve<T>()` and similar methods are now O(1) operations, regardless of the number of modules or bindings within your scope. Previously it would iterate over all modules and bindings, which could reduce performance as your project grew. This optimization is internal and does not affect the public API or usage patterns, but significantly improves resolution speed for larger applications.
---
## Dependency injection with annotations & code generation
CherryPick supports DI with annotations, letting you eliminate manual DI setup.