[vlc-commits] modules: do not copy strings

Rémi Denis-Courmont git at videolan.org
Tue Oct 25 21:55:09 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Oct 25 21:48:01 2016 +0300| [939c2337a783e54f3b6122f0430bf27b4b14e91b] | 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=939c2337a783e54f3b6122f0430bf27b4b14e91b
---

 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=939c2337a783e54f3b6122f0430bf27b4b14e91b


More information about the vlc-commits mailing list