1 pointby yairlenga8 hours ago1 comment
  • yairlenga8 hours ago
    I looked at a common pattern in C codebases — long chains of strcmp over fixed strings (ISO currency codes in this case) — and explored how far you can push it without refactoring the structure. Experimented with few approaches (memcmp, filtering, etc.), and ended with a simple 4CC-based technique that compiles down to integer compares and is noticeably faster in practice.