sqBodywrap was extreme slow on large messages. The reason for that were the
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 30 Sep 2006 16:24:00 +0000 (16:24 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 30 Sep 2006 16:24:00 +0000 (16:24 +0000)
commit17b097be4eae79b8fc7a3588e266fe7f4384a827
tree0b5f27d0b0f4f5bee70b880079dd6cfd18912d8b
parent0cb80c258c5d9665beb15864a615786e7bafce8e
sqBodywrap was extreme slow on large messages. The reason for that were the
amount of calls to sq_strpos and sq_substr. Those functions did expensive
in_array calls and a few other things that only need to be done once. By
using static vars I cached the results with as result my compose screen
opens within a second again instead of 10 seconds.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11788 7612ce4b-ef26-0410-bec9-ea0150e637f0
functions/strings.php