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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Automated Locality Optimization Based on the Reuse Distance of String Operations

10 点作者 chorola大约 12 年前

1 comment

kevingadd大约 12 年前
This seems like a pretty clever approach to tuning the performance of memcpy and memset, since proper instrumentation should enable you to make the right decision(s) about whether to bypass cache on a given operation most of the time. In the cases where you mess up, you can probably spot those by doing a second instrumentation pass after applying the optimizations (to see if any of them actually caused an overall performance hit).<p>It's nice to see that they tested this on a bunch of use cases, as well... and on that note, the adsense-serving benchmark spends 37.5% of its CPU time in memcpy! That's insane! I wonder if it's basically just a web server benchmark where it's calling memcpy a lot to serve up static assets over HTTP?