Re: creating shared libraries

  • From: Mike Pall <mike-1411@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 27 Nov 2014 12:07:45 +0100

Puneet Agarwal wrote:
> I am wondering if there is something similar which I can do to create
> a shared library out of some lua files, as I don't want to compile
> nginx again and again.

Simply put the raw bytecode files into the search path for Lua
files. And, yes, you have to name it *.lua, too.

It doesn't really improve anything if you load a shared library
that somehow would contain the bytecode data vs. loading the
bytecode file directly.

--Mike

Other related posts: