Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PLAT-6627] Improve performance of bsg_mach_headers_image_at_address #1105

Merged
merged 1 commit into from
Jun 1, 2021

Conversation

nickdowell
Copy link
Contributor

Goal

Reduce overhead of calling Bugsnag.notify()

Changeset

bsg_mach_headers_image_at_address now only compares the passed in address against the __TEXT segment of each image (using its precomputed imageSize value.)

This improves performance but means only addresses of executable code will be resolved. Since we only use this function against instruction addresses, this should not present a problem.

Testing

Tested via unit and E2E tests.

In a simple test app, performance per call to notify() has been reduced from 3.8 ms to 2.8 ms 🎉

@github-actions
Copy link

github-actions bot commented Jun 1, 2021

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size did not change - 1,126,560 bytes

Generated by 🚫 Danger

@nickdowell nickdowell requested review from kattrali and kstenerud June 1, 2021 12:22
@nickdowell nickdowell marked this pull request as ready for review June 1, 2021 13:19
@nickdowell nickdowell merged commit 9a9d37f into next Jun 1, 2021
@nickdowell nickdowell deleted the nickdowell/image-at-address branch June 1, 2021 15:53
@nickdowell nickdowell mentioned this pull request Jun 2, 2021
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