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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

LuaJIT 2.1 Profiler released

72 点作者 qwertzlcoatl超过 11 年前

7 条评论

camperman超过 11 年前
LuaJIT is a work of great beauty and efficiency. I&#x27;ve been working on a commercial product for small ARM boards where rapid prototyping has been essential because of ever changing requirements but the speed of the finished code is also paramount. LuaJIT has made this project an absolute pleasure. It wraps C libraries cleanly, it runs within 5-10% of native code speed on the ARM (I checked because I didn&#x27;t believe it at first) and it&#x27;s 100% compatible with all the Lua 5.1 supporting libraries I need. This new profiler will be a great addition to the toolbox along with ZeroBrane Studio&#x27;s debugger which I just discovered this week and which also rocks.<p>Mike Pall needs several Jolt Awards.
评论 #6367696 未加载
评论 #6367765 未加载
acqq超过 11 年前
The most interesting conclusions of Mike Pall reflect my experiences: sampling profilers are often much more usable in practice than instrumentation:<p><i>As you might have noticed, I had to change my plans compared to the original approach presented in June. The main problem with the instrumenting profiler was finding high-precision and high-speed timing sources for all platforms.</i> (...) <i>The necessary pipeline flushes shadowed the actual timings up to the point where the measurements were less accurate than with a sampling profiler! Other platforms offered only inaccurate timing sources or none that are accessible from user mode. And to top it off, the instrumentation added considerable overhead.</i> (...) <i>I had to scrap that work and decided to go with a sampling profiler.</i><p>And I don&#x27;t know any other scripting language with a built-in sampling profiler. Does anybody?
评论 #6368223 未加载
评论 #6366716 未加载
评论 #6368135 未加载
评论 #6366552 未加载
评论 #6366363 未加载
评论 #6366365 未加载
copx超过 11 年前
Great news, up until now there was no good Lua profiler.<p>You can thank GIANTS Software for this one: <a href="http://luajit.org/sponsors.html" rel="nofollow">http:&#x2F;&#x2F;luajit.org&#x2F;sponsors.html</a><p><i>GIANTS Software GmbH is sponsoring the development of a low-overhead profiling functionality for LuaJIT 2.1, starting in June 2013. GIANTS Software develops a variety of simulation games for desktop, mobile and consoles. These games make extensive use of Lua for scripting and modding. Switching to LuaJIT was instrumental in reducing the CPU load and sustaining the required frame rates on all platforms.<p>Existing profilers for Lua and LuaJIT are based on Lua hooks and debug queries. The use of these generic mechanisms incurs a high overhead. Execution of a program under control of such a profiler causes substantial slow-downs. Actual use of the program (gameplay) may be impossible in some cases.<p>The goal is to design and implement a new profiling functionality that has a much lower overhead, better control of detail and high flexibility.</i>
评论 #6368310 未加载
jnbiche超过 11 年前
In this day of multiple megabyte applications, it&#x27;s amazing to me how much Mike Pall is able to fit into ~300 kB.<p>Mike Pall is without doubt one of the most talented developers of our generation, alongside people like Fabrice Bellard and Jeff Dean (to name a few).
rustc超过 11 年前
Slightly off-topic, but does anyone know how I can download the complete mailing list archive data (of luajit)? Many of Mike&#x27;s posts are very informative and useful, and I&#x27;d like to be able to search&#x2F;read them easily, offline.
评论 #6366530 未加载
aktau超过 11 年前
When I grow up, I want to be Mike Pall.
otikik超过 11 年前
This. Is. Awesome.