Skip to content

perf: stacktrace builder improvements#2160

Merged
Litarnus merged 1 commit into
masterfrom
general-improvements
Jul 20, 2026
Merged

perf: stacktrace builder improvements#2160
Litarnus merged 1 commit into
masterfrom
general-improvements

Conversation

@Litarnus

@Litarnus Litarnus commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Instead of building the stacktrace in the correct order by prepending elements through array_unshift, we can just build it fully in reverse order and then reverse it once at the end.

Also replaces mb_* occurrences with regular string operations because we don't need the UTF8 check in those cases. We always compare against already configured strings, so we can just compare the bytes directly

@Litarnus
Litarnus merged commit 21e9fd1 into master Jul 20, 2026
52 checks passed
@Litarnus
Litarnus deleted the general-improvements branch July 20, 2026 10:42
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.

2 participants