We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aea42ca commit bf07cbbCopy full SHA for bf07cbb
CHANGELOG.md
@@ -1,5 +1,11 @@
1
# Changelog
2
3
+## Unreleased
4
+
5
+### Improvements
6
7
+- Slightly speed up adding breadcrumbs (#4984)
8
9
## 8.47.0
10
11
> [!Important]
Sources/Sentry/SentryScope.m
@@ -135,8 +135,10 @@ - (void)addBreadcrumb:(SentryBreadcrumb *)crumb
135
136
_currentBreadcrumbIndex = (_currentBreadcrumbIndex + 1) % _maxBreadcrumbs;
137
138
+ // Serializing is expensive. Only do it once.
139
+ NSDictionary<NSString *, id> *serializedBreadcrumb = [crumb serialize];
140
for (id<SentryScopeObserver> observer in self.observers) {
- [observer addSerializedBreadcrumb:[crumb serialize]];
141
+ [observer addSerializedBreadcrumb:serializedBreadcrumb];
142
}
143
144
0 commit comments