TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Making the HTTPd run 20% faster with qrintf-gcc; a sprintf-optimizing compiler

14 点作者 kazuho超过 10 年前

2 条评论

PythonicAlpha超过 10 年前
Very interesting, that printf has that big impact on execution of standard programs. Printf is very powerful (and one of the reasons for the success of C -- for example when you compare it with the standard library existing in Modula 2 or (old) standard Pascal), but that power also comes with a cost.<p>It would be interesting, how the situation is in C++ with its newer stream based output, that is more based on compiler support (as much I know). Does anybody have experiences with it?
评论 #8424916 未加载
penguindev超过 10 年前
1. nothing generic is as fast as making your own custom solution<p>2. a lot of libc is lowest common denominator &#x2F; tons of bloat. printf&#x2F;sprintf probably does extra locale, multibyte charset, and thread locking shit you don&#x27;t want.