- The Last of Us: A Game-Changing Masterpiece in the World of Gaming
- Maximizing Engagement on Instagram Stories
- Just Play Another Game: The Harm in Casual Dismissal
- New iOS Patch Released to Fix NPC Locations and Stuck Animals
- Is the Apple Watch worth the Investment?
- Say No to Humans: The Importance of Protecting our Planet
- Exploring the Interplay of Dark and Colors in Art and Design
- Why Manchester United is More Than Just a Football Club
- Get Ready for Exciting New Games on Xbox Game Pass in January
- Discovering Low-Cost NFT Projects with Strong Teams and Solid Communities
- Why Some People Prefer Android Over Apple: The Key Differences
- Exploring the Latest dApps on Binance Smart Chain s DappBay and CryptoCitizen
- LG s Menu System and Remote: Unbeatable in the OLED TV Market
- Gate.io Hosts AMA with a $100 Rewards Pool on January 12th at 1 PM UTC
- Choosing the Best High-End Smartphone for Your Budget: A Guide for the Over-50K Price Point
- Hacking: The iPhone vs Android Debate
- The Dilemma of Choosing Between an iPhone and a Washing Machine
- The Dark Side of Mega-Dominant Software Platforms: A Look at Poor Customer Support
- The Last of Us: Part I - How Will the PS5 Affect Sales and Marketing Strategies?
- Win Money with a Quiz: The Ultimate Guide
- 10 Lucky People Wanted: Show Us Your Homescreen and Win!
- Xbox Should Release Starfield on PlayStation for Maximum Reach
- Xbox and Bethesda Developer\_Direct Show Announced for January 2023
- Is the iPhone 14 Worth the Upgrade?
- Closer than Ever Event Featuring Samurai II and Piranha X in Parking, St. Petersburg, and L.A. Block
- Max Price for a Standalone VR Game
- 5 Tips for Creating Professional and SEO-Friendly Blog Articles
- My Tech Wishlist for the Year
- The Connection Between Modern Architecture and Depression: A Critique of Wokeism
- Is switching from an iPhone to a Samsung a good decision?
A friend of mine just replaced Realm in hisOctober 14, 2021, 3:42 am A friend of mine just replaced Realm in his app with SQLite.swift. The iOS binary dropped from 140MB to 23MB. The macOS binary dropped from 324MB to 54MB. That is astonishing. So surprised to learn that Realm is a sow. SQLite is pretty lean and easy to use, if you understand SQL and databases at all. Not forcing an ORM into everything is one of the better things you can do for your sanity. Wow! Very interesting. I was not a fan of Realm and its mutable models. Havent tried out SQLite.swift but have used since, and I have really enjoyed it. Well, as much as one can enjoy a storage solution. Might be a bit polarizing with its use of code generation. I use SQLite.swift and my binary is like 2MB, but my database is only around 10,000 rows. Always thought Realm was really impressive but never had a use for it. Even now I often just use the filesystem and Codeable. Sqlite can compliment it well. Darn, this is nuts! I barely see how it`s even possible . How did he go about the transition? Dont you need to keep Realm around to migrate to the new version? Ive never understood how you can do that This doesnt sound right. Realm is small enough to work inside an App Clip. Its honestly not too much of a surprise. Even with that drastic of a drop, Realm has a heft 15mb buy in at the door. Its the first thing I rip out of an app Im working on when I see it as its value is only in 2 or 3 features most apps dont use. I would be interested to hear how much the build times reduced by too!! Are they shipping with a pre-populated database? Im moving away from it very soon without a replacement library, so I just tested this, and my exported binary only drops by ~25mb. The version of the app that users download from the App Store is only 28mb with Realm. On one hand, yeah, but isnt that kind of like saying I removed all the images and video from my website and converted to plain text and it got smaller? Yes but youre giving up non-trivial functionality (without passing judgment on whether the specific tradeoff is warranted) Whoa thats awesome! I guess thats the fat binary with Bitcode? Sounds very difficult to believe I have many production iOS apps using Realm, with binaries under 40MB. Thats unusual high. Your friend did definitely something wrong when he added Realm/RealmSwift. Not to me, it isnt. Oh man that is nuts! Moving from Realm to Core Data dropped one of my apps from 13MB to 2MB. Not as huge of a change, but still nice seeing the reduction regardless. Huzzah! Free up our phones! I am using SQLite.swift for like two years. Its a great thing. When used with sqlite migration manager and a little bit of fine tuning I dont have any problems with it. |
|