FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » Maximum smileys
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Maximum smileys [message #13874 is a reply to message #13872] Wed, 29 October 2003 22:42 Go to previous messageGo to previous message
AzaToth is currently offline  AzaToth   Sweden
Messages: 125
Registered: October 2003
Karma:
Senior Member

Ilia wrote on Wed, 29 October 2003 23:37


Because preg_match_all() while shorter is actually much much slower. Smileys are rendered by a single strtr() function there is no way to render only 'some' smileys.

hmm, slower you said, how can it be slower than your example, I just count the number of :smileys: in the text, and then a simple calculation, I'm not doing any traversion in the manner you make.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Disable Tree View
Next Topic: default theme css split
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 29 14:57:51 GMT 2024

Total time taken to generate the page: 0.04218 seconds