]> code.citadel.org Git - citadel.git/commit
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)
commit20b2edab30397cb0937b5adca5a0f728e066842c
tree6f4de5d02b8abd3bb7c776fc1f31fc08939b4cde
parent4a210cc2a472e9c1575ad546bfb3c949905a899a
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