Performance: use memchr to find the next '-' and then call memcmp to check whether...
authorWilfried Goesgens <dothebart@citadel.org>
Tue, 7 Dec 2010 22:20:43 +0000 (23:20 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Tue, 7 Dec 2010 22:20:43 +0000 (23:20 +0100)
commit486475be347640c7da6855e6994c6a54b48526cd
tree6f4de5d02b8abd3bb7c776fc1f31fc08939b4cde
parentbb844ffeae944bb80257323b84d25d742488bf53
Performance: use memchr to find the next '-' and then call memcmp to check whether this is a boundary

 - we fast forward to the next '-' since every mime boundary starts with '-'
 - from a '-' we check thorough whether at this point we can find the searched boundary

Thanks to cirrus for pointing me to memchr()
libcitadel/lib/mime_parser.c