[vlc-commits] modules: do not copy strings

Rémi Denis-Courmont git at videolan.org
Tue Oct 25 22:26:22 CEST 2016


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

 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=c35b96983ff99e43db3b369121ad31c6825cd296


More information about the vlc-commits mailing list