Optimize kmod_elf_get_strings() by reducing calls to memcpy
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 20 Dec 2011 05:25:23 +0000 (03:25 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 20 Dec 2011 05:34:28 +0000 (03:34 -0200)
commitf8fa525c7ffa0c700eab437baa8cdb4ba779b603
tree2914401690bf512d0ae5339ca13680ca53cc6ee0
parentb20dc170681cab9a8c5b6d26d0687390fdd94359
Optimize kmod_elf_get_strings() by reducing calls to memcpy

Copy the entire string only once and then scan it, setting up the
pointers of the vector.
libkmod/libkmod-elf.c