aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2007-03-09 16:05:08 +0800
committermi <mi@FreeBSD.org>2007-03-09 16:05:08 +0800
commitb4494573cfe122410156b8c7991313902356dd68 (patch)
tree66fe7fc487a85d754b60367103526370a8714491 /graphics
parent70cfb75eaa7229f1455d3078f837821e5698e6fd (diff)
downloadfreebsd-ports-graphics-b4494573cfe122410156b8c7991313902356dd68.tar.gz
freebsd-ports-graphics-b4494573cfe122410156b8c7991313902356dd68.tar.zst
freebsd-ports-graphics-b4494573cfe122410156b8c7991313902356dd68.zip
Don't use the bundled md5.c and getopt1.c in favor of OpenSSL and
USE_GETOPT_LONG respectively. This reduces the executable's size considerably. (More ports should be doing this.) When comparing md5 checksums (used to detect duplicates in the input), treat each as a pair of 8-byte integers instead of calling strncmp, which was just plain buggy. Memcmp should've been used instead, but two integer comparisions are even faster. Re-work the resizable array of checksums removing a separate malloc call for each md5 checksum. This reduces the runtime memory consumption considerably. (Tried using a hashtable instead of linearly searching through the array, but did not see a speed-gain even over a large collection of messages.) Vendor notified, but has not responded (the software's last release is several years old). Bump PORTREVISION. Approved by: maintainer
Diffstat (limited to 'graphics')
0 files changed, 0 insertions, 0 deletions