Search Issue Tracker
Won't Fix
Votes
0
Found in
2022.3.64f1
6000.0.52f1
6000.1.10f1
6000.2.0b8
6000.3.0a1
Issue ID
UUM-110992
Regression
Yes
Code runs slower when using a cached exception instance compared to creating a new one
How to reproduce:
1. Open the “IN-102980“ project
2. Open Window > General > Test Runner
3. In Test Runner select “Player” and click “Run All”
4. Observe the time it took for the tests to finish
5. Open Project Settings > Player > Other Settings
6. In “Scripting define Symbols” change “PROTO_PROMISE_DEBUG_DISABLE” to “PROTO_PROMISE_DEBUG_ENABLE”
7. In Test Runner select “Player” and click “Run All”
8. Observe the time it took for the tests to finish
Expected result: Tests with “PROTO_PROMISE_DEBUG_DISABLE” run faster (or at least equal) compared to tests with “PROTO_PROMISE_DEBUG_ENABLE”
Actual result: Tests with “PROTO_PROMISE_DEBUG_DISABLE” run slower compared to tests with “PROTO_PROMISE_DEBUG_ENABLE”
Reproducible with: 2021.2.0b6, 2022.3.64f1, 6000.0.52f1, 6000.1.10f1, 6000.2.0b8, 6000.3.0a1
Not reproducible with: 2021.1.0a9
Could not test with: 2021.1.a10, 2021.2.0b5 (Compilation errors: “Feature 'target-typed object creation' is not available in C# 8.0. Please use language version 9.0 or greater.”)
Reproducible on: macOS 15.5 (M1 Max), Windows 10 (by user)
Not reproducible on: no other environments tested
Note: This issue reproduces in IL2CPP, Mono builds and Play Mode
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- ScrollView clips content when under an ancestor that has a filter set
- "Retrieving array element that was out of bounds" error thrown when attempting to remove a column from a Multi-Column List View
- Multi-Column List View horizontal scroll resets to left most position when scrolling vertically
- Floating License is lost for concurrent jobs
- Warning "Failed to insert item" is logged when Assigning Project to Organization's Project in the Project Settings
Resolution Note:
Using Exceptions in this fashion is not recommended, and we advise to use a new Exception.
Since a workaround exists, and the issue is very niche and related to Mono, we will not be fixing this issue at this time.