Skip to main content
This is lesson 5 of 15 in this module Course 65% complete

Demo: Optimizing Gen:0 Allocations

Premium Content

Sign in with your account or sign up to access this lesson.

We runs an optimized version of the Pig-Latinifier that works with char values instead of single-character strings, dropping generation 0 allocations from 187 to 19. The lesson also discusses optimizing the app further with character arrays, avoiding intermediate strings entirely.