[vlc-commits] modules: do not copy strings
Rémi Denis-Courmont
git at videolan.org
Tue Oct 25 22:16:36 CEST 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Oct 25 21:48:01 2016 +0300| [6b96fdb024dce81d3de4d807588b8d679c0c721d] | committer: Rémi Denis-Courmont
modules: do not copy strings
Strings are either string literals, or contained in the memory mapped
caches. Either way, there is no needs to allocate memory and copy them.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6b96fdb024dce81d3de4d807588b8d679c0c721d
---
include/vlc_configuration.h | 12 +++----
src/audio_output/output.c | 2 +-
src/config/core.c | 12 -------
src/config/help.c | 2 +-
src/modules/cache.c | 27 ++++++---------
src/modules/entry.c | 74 ++++++++++++++----------------------------
src/modules/modules.h | 12 +++----
src/video_output/interlacing.c | 2 +-
8 files changed, 50 insertions(+), 93 deletions(-)
Diff: http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=6b96fdb024dce81d3de4d807588b8d679c0c721d
More information about the vlc-commits
mailing list