DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. This Week in Mobile: How Autoboxing Can Kill Performance

This Week in Mobile: How Autoboxing Can Kill Performance

This week, we learn how autoboxing can have adverse effects on performance in your Android app, how to avoid breaking language changes in Swift, and lots more.

James Sugrue user avatar by
James Sugrue
CORE ·
Apr. 26, 17 · Opinion
Like (2)
Save
Tweet
Share
3.03K Views

Join the DZone community and get the full member experience.

Join For Free

Did you ever think about the effects of autoboxing in your code? Or how about using attributes and annotations to make your code easier to digest for others? It's all covered in this week's issue of This Week in Mobile.

iOS 

If you’re worried about breaking language changes in Swift, you need worry no longer. The Swift Source Compatibility Test Suite is now available. Project owners can submit their projects to be included in the suite to ensure that as the language develops, compatibility regressions can be caught early. Nice work!  

When playing around with protocols and generics, sometimes things get a little messy with errors around associated types. Swift World: Type Erasure explains how to deal with this in a fairly neat way, with links out to other useful articles around the same subject.

While on the topic of protocols, here how you can Leverage Protocol Composition for More Maintainable Dependency Injection. It’s a very clear way to manage your dependencies in a Swift-y way. 

A really nice explanation of how to Optimize Your Code With Swift Attributes from the team at buddybuild. If you’re writing code that’s used by anyone else, this one is worth reading up on. 

Some projects to check out: 

  • Cluster: Easy Map Annotation Clustering. 
  • TweenKit: Animation library for iOS in Swift. 
  • Fire-in-Swift: A delightful HTTP/HTTPS networking framework for iOS/macOS/watchOS/tvOS platforms. 
  • BMPlayer: A video player for iOS, based on AVPlayer. 

Android 

Another key performance tip, and something I hadn’t thought about much before: how Autoboxing Can Cause Big Problems for Android App Performance. It seems to be easy to get around the drawbacks by using ArrayMap and SparseArray. 

Running interviews is really difficult, and it’s no different when Interviewing Android Developers. This article goes through some of the main topics you might want to discuss when looking for someone new in your Android team.

RxJava will always be a popular topic for any Java developers, so this article which compiles all the best resources to master the library in one place is a great idea. Enjoy The Complete Guide to Learn RxJava!

Custom Annotations can be pretty useful. Here’s a complete example of how to get your own up and running.

The team at Yelp show how they run Continuous Integration on Android using a cluster of AWS machines, and utilizing Firebase Test Lab to get some real testing done. 

Some projects to check out: 

  • ExtraMapUtils: Utility library to make working wth maps more convenient 
  • Meepo: Router generator for Android, similar to retrofit 
  • ChromeLikeTabSwitcher: Provides a tab switcher similar to the one used in Chrome for Android 
  • Matisse: A well-designed local image and video selector for Android 

General 

For some reason, it seems a lot of designers don’t use version control. Here’s how you can Run Smoother Projects With Sketch and Version Control, making collaboration so much easier.

Here’s some commentary on why having frequent app updates makes your app more competitive on the app store. Reducing technical debt is one good reason, but more subtle things, like being on the updates list more often, will remind your user base that you are still there! 

Finally, check out Creating Usability With Motion: The UX in Motion Manifesto, which explains how you can do so much more with an understanding of the twelve principles of UX in motion. It’s a long article, but the rewards will be great!

mobile app Android (robot)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How To Create and Edit Excel XLSX Documents in Java
  • Express Hibernate Queries as Type-Safe Java Streams
  • Event Driven 2.0
  • How to Secure Your CI/CD Pipeline

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: