‹ BackHN Continuity

Thread

GrapheneOS – When an app is slow

86 points · 65 comments · speckx

  1. pjmlp · · focus · HN ↗
    Maybe the actual solution is to improve, replace the application.
    1. izacus · · focus · HN ↗
      Or maybe there's a reason why the mainline Android OEMs don't ship that allocator by default.
      1. grapheneos · · focus · HN ↗
        The hardened_malloc project has performance vs. security configuration. It's used in a very security-oriented configuration in GrapheneOS. GrapheneOS could offer a performance vs. security toggle for this but hasn't yet included one since there are rarely apps with any noticeable performance difference. Android apps are mostly written in Java/Kotlin where it makes no difference. There are often specific uses of optimized C, C++ or Rust code where it makes little difference. It's rare for an app to be heavily impacted by malloc performance as if it's a malloc microbenchmark, and even in that case the overhead is typically quite reasonable. OsmAnd is doing something very strange in a certain configuration.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.