lua-users home
lua-l archive

Re: changes in 'require'

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Now I have some numbers:
- time to load a quite small Lua file (4 one-line functions): ~100us
- time to load an already loaded file: < 1us
- time to search a non-existent file: ~30us
So, it does have an impact (mainly because, with the obvious
implementation, you have to pay it even when requiring an already loaded
module).
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /