summaryrefslogtreecommitdiffstats
path: root/VERSION
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2020-03-22 19:53:19 +0200
committeravih <avih@users.noreply.github.com>2020-03-22 23:34:19 +0200
commiteb5635131d3c16f9a670063c10f208ecdece6b7e (patch)
treea69ace42a0c8e72a68b009e5a53202ed0ad005dc /VERSION
parent6169fba79679aff0c4b07fbae03ed30e9f6f7eb6 (diff)
downloadmpv-eb5635131d3c16f9a670063c10f208ecdece6b7e.tar.bz2
mpv-eb5635131d3c16f9a670063c10f208ecdece6b7e.tar.xz
lua: use an autofree wrapper instead of mp_lua_PITA
Advantages of this approach: - All the resources are released right after the function ends regardless if it threw an error or not, without having to wait for GC. - Simpler code. - Simpler lua setup which most likely uses less memory allocation and as a result should be quicker, though it wasn't measured. This commit adds the autofree wrapper and uses it where mp_lua_PITA was used. It's not yet enforced at the C level, there are still redundant talloc_free_children leftovers, and there are few more places which could also use autofree. The next commits will address those.
Diffstat (limited to 'VERSION')
0 files changed, 0 insertions, 0 deletions