-
Notifications
You must be signed in to change notification settings - Fork 235
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
Stop serialize data through NSKeyedArchiver #433
Comments
hi @evnik , thanks for bringing this up. We will consider it. |
It seems Mixpanel is too much to handle for Series 3 watches and older. My team is getting lots of crash reports from Series 3 and 2 with this signature
I've tried everything I could find to address the normal causes of the snapshot background task failing with this watchdog signature, but to no avail. I am currently disabling Mixpanel for older hardware to see if we get better results. My team would really appreciate seeing this issue addressed. Thanks! |
hi @tealshift , we've been working on this, will switch to sqlite. |
@evnik @tealshift We have a new beta release that addresses this issue if you'd like to try it out here: https://github.com/mixpanel/mixpanel-swift/releases/tag/v3.0.0.beta.4 (Please do note the beta release does not include Messages & Experiments functionality) |
Instructions for installing the beta branch are here: https://github.com/mixpanel/mixpanel-swift/tree/3.0.0.beta#installation |
@jaredmixpanel do you have a timeline you can share for 3.0.0 release? I'd love to move over the SQLite for event serialization but don't want to get bitten by shipping a beta. |
@foxware00 The intention is to keep the version without Messages & Experiments as "beta" until M&E is fully deprecated. We will move it out of beta after we get some feedback, but that won't be before we have deprecated M&E in January 2022. |
Thanks for the reply @jaredmixpanel. This SQLite change seems really cool and it'll be a shame to wait until January for all that goodness but I understand the timeline with M&E deprecations. Just don't want to be stuck in a SQL migration issue down the road. Have you got a roadmap for the 3.0.0 release we can feedback on directly? I don't know if this issue is the best place. |
@foxware00 The 3.0 "beta" is just the current release, minus M&E code, plus SQLite. We're fully supporting it now. You can open any new issues about it here on Github. |
@jaredmixpanel thanks for the response. I will have a play and see how it fits in! |
@foxware00 We're using 3.0.0.beta in prod with minimal issues. (it resolves this issue). |
Marking it closed now. Since the 3.0.0 release is just around the corner(Jan 1, 2022) and we are encouraging everyone to try it out. We are fully supporting it! Reminder: On Jan 1, 2022, Messages & Experiments will be removed from Mixapnel. |
Our app gets a lot of high energy consumption reports with backtraces similar to this:
Screenshot from Xcode Organizer to make it more clear (this is a recent beta version, actually there are much more than 5 you can see here):
From what I see,
NSKeyedArchiver
provides poor performance itself as well as comparing to other solutions, which means it also takes more energy to handle the data. In addition, Apple documentation saysFrom what I understand, Mixpanel actively uses
$
prefixed keys, which makes performance even worse and energy consumption higher.Finally there are bunch of fixed and even active (like #431) crashes, seems to be caused by the
NSKeyedArchiver
I believe these arguments should be enough to reconsider implementation of Mixpanel
Persistence
class.The text was updated successfully, but these errors were encountered: