frozen
« Back to VersTracker
Description:
Header-only, constexpr alternative to gperf for C++14 users
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ header-only constexpr hashing performance
Install: brew install frozen
About:
Frozen is a header-only C++14 library providing compile-time perfect hash maps and sets. It enables developers to define static lookup tables that are evaluated entirely during compilation, eliminating runtime initialization overhead. This makes it an ideal, dependency-free alternative to tools like gperf for performance-critical applications.
Key Features:
  • Compile-time perfect hash generation
  • Zero runtime initialization cost
  • C++14 constexpr compatibility
  • Header-only, no dependencies
Use Cases:
  • Implementing high-performance keyword lookup tables
  • Replacing runtime-generated hash maps in embedded systems
  • Optimizing switch-statement alternatives for large key sets
Alternatives:
  • gperf – Frozen is a modern C++ header-only library, whereas gperf is a standalone code generator requiring a separate build step.
  • phmap – Frozen focuses specifically on compile-time perfect hashing, while phmap provides runtime parallel hash maps.
Version History
Detected Version Rev Change Commit