Skip to content

Reduce exception overhead - #2520

Open
Manodasan Wignarajah (manodasanW) wants to merge 2 commits into
staging/3.0from
manodasanw/exception
Open

Reduce exception overhead#2520
Manodasan Wignarajah (manodasanW) wants to merge 2 commits into
staging/3.0from
manodasanw/exception

Conversation

@manodasanW

Copy link
Copy Markdown
Member

Based on the benchmarks, the native exception saves 24 bytes from cached Boolean metadata and approximately 88 bytes by avoiding intermediate message strings. The restored managed exception saves the 24-byte Boolean box.

Cache boxed language-error flags, avoid duplicate Exception.Data scans, and build restricted error messages without intermediate strings.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ddbd67fd-01c2-4b1b-b23f-f9eb0ad8f70e
Skip dictionary key lookups when exception metadata is empty and avoid reading the language-error flag unless a restricted error object was found.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant