Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Hey mud, thanks for your answer, i replied in the original question Commented Dec 20, 2010 at 13:04
  • 2
    I accepted your answer, because even if it didn't solve my problem in the end, it does answer the question. Although luaJIT fallbacks to the interpreter when using C libraries, so using a C library wasn't a good solution in the end Commented Dec 21, 2010 at 16:14
  • > EDIT: I wrote a test C implementation and it's ~5 times faster than the Lua implementation presented in this post. link seems outdated @Mud Commented Oct 27, 2022 at 7:26
  • @Rom's I found some old code on my disk which may or may not be the code that was at that link (too long for me to remember). I added it to the post. Commented Oct 28, 2022 at 16:48