[eluser]Lone[/eluser]
Thanks for the link to our minitextile and I just wanted to make a couple of comments.
First of all I am just curious as to why to make a new library rather then suggestions on our own - the reason I ask is not because we don't want another but just curious as to whether you found in many flaws in our own. Infact I ran a quick test between ours and yours and saw a definite speed increase (when looped 10000 times) in yours compared to ours. I also really like that array usuage for the preg_replace! Didnt know you could do that
However that does steep me into the next comment, the string I tested it on for yours actually intepreted it incorrectly.. below is the string:
Code:
$sample =
'This is some *sample* text to
test the time it does take
for this *to be processed* through *the* textile library
hurray!';
And here is the output (note the extra <br /> after the <p> tag
Code:
<p>This is some <strong>sample</strong> text to
<br/>test the time it does take</p>
<p><br/>for this <strong>to be processed</strong> through <strong>the</strong> textile library</p>
<p><br/>hurray!</p>
As ours was slower I wonder if it was because ours was able to interpret better and hence needed more overhead?