Skip to content

Instantly share code, notes, and snippets.

@ioannisa
Last active January 16, 2026 23:38
Show Gist options
  • Select an option

  • Save ioannisa/0274b1a7c62ed0be92f3af1ab8013934 to your computer and use it in GitHub Desktop.

Select an option

Save ioannisa/0274b1a7c62ed0be92f3af1ab8013934 to your computer and use it in GitHub Desktop.
Aspect Hilt Koin
Compile-time Generates factory classes Generates definition lambdas
Runtime lookup Direct factory reference (type-safe graph) Definition index by key (~0.005ms)
Instance creation Runtime (via factory.get()) Runtime (execute lambda)
Missing dependency Build fails Runtime crash (or build fails with Annotations/Plugin)
Build time Slower (annotation processing) Faster (no KSP/KAPT)
Your classes Framework-agnostic Framework-agnostic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment