Hacker GitHub

← All repos

h2o/qrintf

View on GitHub ↗ ★ 404 C

sprintf accelerator for GCC and Clang

4 mentions on Hacker News by 4 people: 0 stories, 4 comments · first 2014-12-25 · latest 2021-07-06

Mentions per year 4 mentions · busiest year 2014 (1)
20082026
  1. The qrintf preprocessor accelerates sprintf expressions. https://github.com/h2o/qrintf Noob question: Can libgccjit be used to do the same at runtime?
    comment by specialist · 2021-07-06 · in Libgccjit AOT Codegen for Rustc
  2. …a JIT but a preprocessor at compile time that makes sprintf calls faster by pre-splitting them: https://github.com/h2o/qrintf
    comment by baruch · 2018-05-21 · in Tearing apart printf()
  3. I've used https://github.com/h2o/qrintf before which replaces many snprintf usages with standard C code at compile time
  4. Looking at the tangentially linked qrintf project that H2O uses ( https://github.com/h2o/qrintf ), replacing generic sprintf calls with specialised versions for a 10x speed boost - that seems like a brilliant idea, I wonder why it took so…