Skip to content

Commit

Permalink
fix(perf): func growingHelper_beautifulJsonString waste a lot of cpu …
Browse files Browse the repository at this point in the history
…time
  • Loading branch information
YoloMao committed Apr 30, 2024
1 parent bec7290 commit 53fc234
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GrowingTrackerCore/Event/GrowingEventManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,11 @@ - (void)sendEventsOfChannel_unsafe:(GrowingEventChannel *)channel {
#pragma mark Event Persist

- (void)writeToDatabaseWithEvent:(GrowingBaseEvent *)event {
#if defined(DEBUG) && DEBUG
GIOLogDebug(@"save: event, type is %@\n%@",
event.eventType,
[event.toDictionary growingHelper_beautifulJsonString]);
#endif
NSString *eventType = event.eventType;

if (!event) {
Expand Down

0 comments on commit 53fc234

Please sign in to comment.