pods4k

Performance-oriented data structures for Kotlin, led by Immutable Arrays

Image 1 of 1: Bar chart of map throughput by type for lists, arrays and Immutable Arrays

Immutable Arrays are inline classes that compile to regular arrays, with list-like syntax, highly optimized operations and immutability enforced at compile time, so mutation attempts fail before the code runs.

  • 2 to 8×Speed against lists
  • >4× lessMemory against lists

Trade-offs

  • Techniques only the Kotlin compiler supports. Inline classes compile to regular arrays, but referencing these types by class name works only within Kotlin files.

Q&A2

With JMH on JDK 17: 1,000 randomly generated collections of realistic sizes, across lists, arrays and Immutable Arrays and nine data types, using the same seed for identical data.

Reviews

Loading reviews

    More in Performance

    See all 47 →
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • blitcpFile copier that reads in disk order, dedupes and streams over raw SSH
    • EntrolyLocal context layer that picks what coding agents send to the model
    • BigMoeOnEdgeEngine that streams MoE experts from flash to run models larger than memory
    • AntirionAI gateway in one Rust binary, with the admin console built in
    • PXALLM server tuned for Tesla P100, V100 and GTX 10-series GPUs

    More in Kotlin

    See all 30 →
    • TellyscopeAndroid TV debloater and remote that runs from a phone over ADB
    • OffPayOffline UPI payments over *99# USSD, with no data connection
    • KotauthMulti-tenant OAuth2 and OIDC identity server in Kotlin, self-hosted in Docker
    • TesseraDebian and Flathub apps on Android, each in its own window on the phone's GPU
    • KetchDownload manager across desktop, mobile, web and the command line
    • MockNest ServerlessWireMock-compatible API mocking in an AWS account