Commit History

Autor SHA1 Mensaxe Data
  Felix Fietkau 8f98214617 lua: add reference counting for strings - this will need A LOT of testing, but it should finally fix the excessive memory usage problems triggered by luci %!s(int64=16) %!d(string=hai) anos
  Jo-Philipp Wich 03db00a803 package/lua: implement memory limits, scripts can use get_memory_limit() and set_memory_limit() to cap the maximum ram usage %!s(int64=16) %!d(string=hai) anos
  Felix Fietkau e219aaf034 lua: remove an unnecessary check and replace switch (GET_OPCODE(i)) as well (thx, lars) %!s(int64=17) %!d(string=hai) anos
  Felix Fietkau 62333dabe1 improve lua opcode dispatch performance by using computed goto instead of switch/case - improves performance by about 10% in a simple loop test %!s(int64=17) %!d(string=hai) anos