News for hackers. Stuff that matters.
Re:Adding 16 KB Page Size to Android by dataflow on Friday August 23, 2024 @08:52PM (#41334555)
> When could an app NOT be agnostic to this

When the app has a custom memory allocator, the allocator might have hardcoded the page size for performance. Otherwise you have to load a static variable (knocks out a cache line you could've used for something else) and then do a multiplication (or bit shift, if you assume power of 2) by a runtime value instead of a shift by a constant, which can be slower.

No idea if Android apps are ever this performance sensitive, though.

There are no comments on this comment yet.