Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering OpenCV Android Application Programming

You're reading from   Mastering OpenCV Android Application Programming Master the art of implementing computer vision algorithms on Android platforms to build robust and efficient applications

Arrow left icon
Product type Paperback
Published in Jul 2015
Publisher
ISBN-13 9781783988204
Length 216 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Best practices


A mobile platform is not as powerful as a personal computer and hence requires developers to be extra cautious while building applications for mobile devices. A badly written code can make your application sluggish, hence, it is very important to write the code while keeping in mind the resource constraints of a mobile device, such as limited RAM, limited processing capabilities, and small cache size.

Here are a list of things that can affect an application's performance and should be taken care of while building an application:

  • Memory leaks: It is important to manage variables in the code properly. Because most of the code is written in Java, the developers need not spend much time on handling memory, as Java does this explicitly. While using C/C++, it becomes extremely important to handle variables in your code.

  • Duplicate data: While handling large amounts of data in applications that use datasets to train machine learning algorithms, we should avoid having multiple copies...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image