3 ms·
A few years back the FB app reached Android’s limit for the number of classes defined in the codebase (2^16), so the FB engineers wrote a hack that ran before t
by ermir 5y ago
A few years back the FB app reached Android’s limit for the number of classes defined in the codebase (2^16), so the FB engineers wrote a hack that ran before the app to somehow bypass this limit. Apparently they don’t delete anything and just keep adding stuff to the codebase.
What kind of app needs 65536 classes?
- ermir 5y agohttps://m.facebook.com/nt/screen/?params=%7B%22note_id%22%3A10158791578712200%7D&path=%2Fnotes%2Fnote%2F&refsrc=deprecated&_rdr https://m.facebook.com/nt/screen/?params=%7B%22note_id%22%3A... Found the old explanation, it seems I had misremembered some details but it’s still super insane.
- int3 5y agoThe method limit is the more constraining one. Also, Google eventually lifted this limit on newer versions of Android because other apps were running into the same issue. It's not just FB :)
- tentacleuno 5y agoBear in mind that number also includes classes declared in dependencies.