This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Lua - require only a part of library
#3
(14.08.2018, 07:11)Erwin van der Zwart Wrote: Hi,

You can always create a new lib with part of functions you need..

I don’t see any added value to this only when you have huge libs with lots of functions that would be loaded, creating several user libs has the same result...

Next to that i have never seen huge user libs up to now..

BR,

Erwin

Yes I know but in NODE JS this is normal. And current direction is to use only what necessary and not unnecessarily import something.

Added value is I think in performance(maybe a little but it is, and LM is a little CPU so optimization is important). Another advantage is that you can declare above your code what variables and functions you are use from the library. This would be especially useful with Common functions.
Done is better than perfect
Reply


Messages In This Thread
RE: Lua - require only a part of library - by buuuudzik - 14.08.2018, 13:20

Forum Jump: