> I have tried to use LuaRocks today for the first time and discovered that 
> http://luarocks.org/repositories/rocks/manifest file is not cached anywhere 
> on the disk and is downloaded each time when I type "luarocks search XXX". 
> Why do not add a simple check based on Last-Modified HTTP header?

Because historically the manifest file has been so small that it
doesn't take much longer to hit the server with GET than with HEAD.
Recently I noticed that the file had grown, so I zipped it and it
became tiny again (LuaRocks from git now loads manifest-5.x.zip).

And tonight, as you suggested, I just committed a change that adds
local caching to the remote manifest and checks the timestamp with the
Last-Modified HTTP header.

In short, the next release will be much speedier. :)

-- Hisham

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to