• Welcome to Simple Machines Community Forum. Please login or sign up.
December 07, 2021, 07:59:00 AM

News:

SMF 2.1 RC4 has been released! Try it out and help us test! :) Read more.


Faster Parsecode

Started by Anguz, October 22, 2004, 06:28:53 PM

Previous topic - Next topic

Anguz

Link to Mod

This mod will make the bulletin board code parsing faster.
Cristián Lávaque http://cristianlavaque.com

Burpee

Hmm... any downsides?
If there aren't it wouldn't make sense to turn this into a mod - it should just be used for the default SMF install...

Anguz

October 22, 2004, 07:43:59 PM #2 Last Edit: January 26, 2005, 07:34:22 AM by Anguz
For now it's a mod, I'm a mod maker. :)

I don't know any downside yet. If you think about it, this function is called lots of times in topics: for message bodies (if there's code blocks, it's called more than once) and signatures, news. Any optimization on it would be very good, so I worked on it for some weeks. In my tests, this one is 20-1000% faster, depending on what it's given to parse.
Cristián Lávaque http://cristianlavaque.com

[Unknown]

Just because it's faster doesn't mean there are no downsides.  I'm not completely certain it will parse the same, and there's no one it's going into 1.0....

Because, see, the one in there works, mostly.  There are a few bugs, but generally speaking it works and for most people.  Even if this one is faster, and even does some things better... if there's anything it does worse, it really won't be a good move.

-[Unknown]

Kindred

Well, I tried to install it, (mostly because I want to install the csv-table mod) but I keep getting failures on the install....
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Anguz

Do you have the publick RC2? If you installed the fixes package, that may be why you get the failure. I'll write a quick update for the mod to install on the fixes one quick.

* Anguz switches to his text editor...
Cristián Lávaque http://cristianlavaque.com

Anguz

Updated to 1.01

Now it installs fine on RC2 after the fixes patch was applied.
Cristián Lávaque http://cristianlavaque.com

Lazy

installs fine on rc2 btw. works fine, allways do installs by hand & seems parsing faster.

allfripou

thx for this mod :)

However the codes in uppercase like [*U] are not parsed anymore in my case [*u] still works.

Maybe a mistake on my side or a small fix ?

:)

Anguz

What tag gives you that problem? Did it work fine before the mod? It should be case insensitive.
Cristián Lávaque http://cristianlavaque.com

allfripou

November 14, 2004, 06:29:21 PM #10 Last Edit: November 14, 2004, 06:33:56 PM by allfripou
[*U]here  [/U] does not work anymore and was working just before the mod introduction. I'll test the others ;) and edit here.

PS [*u] was working  and is working anyway.

Edit get the same for COLOR , B. I think this is general. I have tested the BB codes in the board news.

Anguz

Yeah, I think I know what the problem is. I'll fix it and release the update soon. Sorry for not noticing before.
Cristián Lávaque http://cristianlavaque.com

Anguz

November 15, 2004, 02:06:17 AM #12 Last Edit: November 15, 2004, 06:30:05 PM by Anguz
Updated to 1.02


  • Fixed the case sensitivity issue, now it's working with upper or lower case correctly.

I made this release an update instead of a full installer, so you will need 1.01 installed first. The reason for doing it like this was that many other mods are based on this one, uninstalling would have been a lot messier if you had those too.
Cristián Lávaque http://cristianlavaque.com

allfripou


Anguz

Cristián Lávaque http://cristianlavaque.com

Anguz

Someone asked me why it is faster. The main reason is that it first checks which tags are used in the message passed to it and then only does those.
Cristián Lávaque http://cristianlavaque.com

Webby

Works very well and is indeed faster.  Thanx !

Tony Reid

Im getting this error when I click [Apply Mod] in the package manager...

Quote
Installing this package will perform the following actions:
Type                                                    Action                                              Description
1. Execute Modification                     ./Sources/Subs.php                           Failure

All I have installed is the public RC2 and the fusebox mod.

Any ideas?

Tony Reid

Anguz

If you've not installed the fixes for RC2, then use 1.00. If you have, use 1.01. After either one, apply 1.02 update. Let me know if that helps. :)
Cristián Lávaque http://cristianlavaque.com

Tercel

Hi,

thanks for your great MODs!
With FasterParsecode i got a Problem when installing.
After installing 1.01, PaketManager will not let me install the 1.02 Update, cause it says its an old Version (Red Light behind the Mod Name).

Does anyone know what´s the reason for that?

Thanks from Germany!

Tercel

Advertisement: