Username:
Password:
Remember me:
Register

Back to forum: Announcements


Search forums via Google


0 Users appreciate this thread.

Yet more Chatroom Optimisation
Started by SomeLuigi
(2012-08-03 11:50:00)
SomeLuigi (2012-08-03 11:50:00)







After noticing that my latest bit of optimisation worked for a bit, but soon enough, 503s again!

But I'm not finished YET! Moar Moar Moar Optimisations!

I was thinking about this and realised this:

Most messages sent have nothing to do with commands, so why should the chat check every command individually?

Bad:
Invalid nesting error at tag #color (phase "color=(.+)") when parsing
[box=red]
[color=#FFFFFF]
IF command is /me
IF command is /ban
IF command id /warn
IF command is ....
[/color]
[/box]
### end of error report. extra information that may or may not be useful to developers: *IBV*color*OCTTWO*1*OCT*1*CCT*1*END OF EXTRA INFO*


Better:
Invalid nesting error at tag #color (phase "color=(.+)") when parsing
[box=lime]
[color=#FFFFFF]
IF message is a command, continue, otherwise stop
IF command is /me
IF command is /ban
IF command id /warn
IF command is ....
[/color]
[/box]
### end of error report. extra information that may or may not be useful to developers: *IBV*color*OCTTWO*1*OCT*1*CCT*1*END OF EXTRA INFO*


And whilst I go and mess with that, I'll show you a few "diagrams" to do with server overload:






There is a chance that some commands may break with this change, so those need to reported to me so I can investigate the problem further, and possibly fix it.

This optimisation task did go through 2.1 revisions, most of which I spent moving over blocks of code.


I cut 44.3 KB slack when sending a message not containing a command. You may not think that's much, but a message is sent at most every 3-5 seconds, making this an efficient optimisation.

Well, anyway, I'm going to publish this Thread out for everyone to see and move it out of the Void.

This post has been edited one or more times, the last time was:
2012-08-03 12:10:11

SomeLuigi is changing in 2015.
Victini (2012-08-03 12:42:32)
Good and Nice -b
V is for VICTORY!!!
WWTEpicFail (2012-08-03 12:46:15)
cool and Cool and COOL!
Robdeprop (2012-08-03 16:32:21)
Good job! As programmer, I hate server/ database limits D:
10 Years 3DSPlaza!
OtherSilhouette (2012-08-03 16:35:26)
Cool! Im sick of 503's. -.-" Server limits, Y U NO EXPAND?

Oh yeah, because the host's a troll.
little5 (2012-08-04 04:18:17)
Most people only post cool because they don't know what this is so....Cool
Shy (2012-08-04 18:15:29)
Sooo.. The 503s will finally slow down/stop?
(Capt.)Orb (2012-08-05 01:11:18)
cool.
Aviation fact: The a380 is the largest commerical aircraft in service!

Go to Splashiverse! Splashiverse
mewtwo (2012-08-05 01:37:27)
Yay
I812 (2012-08-10 09:31:14)
I'm still getting them. but they're becoming less common every day. Thanks SL
My PSN: Idunno543.
My NNID: EpicMudkips215.
SPOOKY GHOST CIRCLES 0o0o0
chriz (2012-08-12 01:31:32)
good. as always.
Horizon (2012-08-17 06:50:07)
thank u so much luigi!
>insert something cool<
SexehEevee (2013-06-22 04:00:18)
Amazing!
 

Log in to submit a comment

This topic's ID: 26744

Back to forum: Announcements




Total registered users: 8321
New registered users today: 7
Newest registered user: ElegantVulpes

©  Copyright 2026 3DSPlaza. All Rights Reserved