Steps to reproduce:
1. Open the attached project “ScopedRegistryTest.zip“
2. Enter Play Mode
3. Open Window > Analysis > Memory Profiler
4. In the Memory Profiler window click “Capture New Snapshot“
5. Open Window > Package Manager
6. Enter Play Mode
7. In the Memory Profiler window click “Capture New Snapshot“
8. Select the snapshot that was made before opening the Package Manager
9. Click “Compare Snapshots“ and then select the snapshot that was made after opening the Package Manager
10. Open the “Objects and Allocations“ tab
Expected result: No memory usage increase caused by an open Package Manager window
Actual result: A memory usage increase caused by new “System.String“ types related to packages in the registry and the associated versions
Reproducible with: 2020.3.39f1, 2021.3.8f1, 2022.1.14f1, 2022.2.0b6, 2023.1.0a8
Reproducible on: Windows 10
Notes:
1. An open Package Manager window also has an impact on the time it takes to enter Play Mode
2. With a bigger registry of packages the memory usage and the time it takes to enter Play Mode increases