1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-06 23:20:15 +00:00
mpv/player
wm4 c2ee7bce4c console: reduce memory usage in default mode
This used 1 MB due to building the complete command and property list
when starting the script. These are needed only for auto-completion, so
build them only on demand. Since building them is fast enough, rebuild
them every time.

The key bindings table is not that much, but saves some KBs. Oddly, the
code to build it uses less memory than the table at runtime (???), so
build it at runtime as well.

Add 2 tactic collectgarbage() calls as well. This frees unused heap when
it is known that the script is going to be completely inactive until
re-enabled by the user.
2020-04-10 13:36:10 +02:00
..
javascript
lua console: reduce memory usage in default mode 2020-04-10 13:36:10 +02:00
audio.c
client.c client API: report IDs of inserted playlist entries on loading playlist 2020-03-27 00:57:11 +01:00
client.h scripting: remove race condition when toggling internal scripts 2020-03-26 23:59:44 +01:00
command.c ipc: add --input-ipc-client option 2020-04-09 01:05:51 +02:00
command.h command: use client IDs for hooks 2020-03-26 23:40:25 +01:00
configfiles.c
core.h player, stats: more silly debug stuff 2020-04-10 00:55:39 +02:00
external_files.c
external_files.h
javascript.c js: make wait_event autofree 2020-03-22 00:53:30 +02:00
loadfile.c player, stats: more silly debug stuff 2020-04-10 00:55:39 +02:00
lua.c lua: wrap existing allocator instead of reimplementing it 2020-04-09 02:21:09 +02:00
main.c player, stats: more silly debug stuff 2020-04-10 00:55:39 +02:00
misc.c
osd.c
playloop.c player, stats: more silly debug stuff 2020-04-10 00:55:39 +02:00
screenshot.c
screenshot.h
scripting.c scripting: remove race condition when toggling internal scripts 2020-03-26 23:59:44 +01:00
sub.c
video.c video: remove another redundant wakeup 2020-04-10 01:33:38 +02:00