Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDave Adams
4,127 PointsFinished the Ribbit app...why is it so slow? What are some top improvements that can be made to improve speed?
Great project. I know the purpose of the course is to learn how to build the key components. But I'm wondering why it's so slow? For example, when you click the send button after capturing a photo, there's noticeable latency. Similarly, when you receive and open a message there is latency. Ben, can you outline what some of the major optimizations would be?
1 Answer
Faiz Ahmed
Courses Plus Student 40 PointsThe send button lag can be fixed by changing this line in the FileHelper.java class . bitmap.compress(Bitmap.CompressFormat.PNG, 100, outputStream); tp bitmap.compress(Bitmap.CompressFormat.JPEG, 50, outputStream);