Author Topic: OmnomIRC Numbers!  (Read 5694 times)

0 Members and 1 Guest are viewing this topic.

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
OmnomIRC Numbers!
« on: May 11, 2011, 03:40:40 am »
The current version requests the chat log every 4.5 seconds. That's 4300 bytes or 4.3KB every 5 seconds.

4.3 * 12 = 51.6kb/min
51.6 * 60 = 3,096kb(3MB)/hr

One of the userlist files that refreshes every 15 seconds is 700 bytes.

700*4=2800b(2.8kb)/min

2.8*60 = 168kb/hr

3096+168 = 3264kb/hr

The other userlist is about 800b every 15 seconds.

800*4=3200b/m
3.2*60 = 192kb/hr
3264kb/hr+192kb/hr = 3456 kb/hour, or 3.4MB in usage.

The new Omnom engine uses 2,067 bytes for the initial request(only ran once per tab), and uses at max 500 bytes about every 30 seconds afterwards(45 second timeout, guesstimating the messages averaged in bring that to 30).

500 * 2 = 1000b/m
1000*60 = 60,000b(6kb/h)/h
60,000+2067 = 62,067b/hour

62kb is 1/55th of 3456kb, meaning the new Omnom engline should use about 1/55th of the bandwidth on your end, or what lasted you about a minute and 6 seconds on the old OmnomIRC will now last you for an hour on the new one.
« Last Edit: May 11, 2011, 03:41:56 am by Netham45 »
Omnimaga Admin

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: OmnomIRC Numbers!
« Reply #1 on: May 11, 2011, 04:08:11 am »
Nice! Good work Netham :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: OmnomIRC Numbers!
« Reply #2 on: May 12, 2011, 04:12:40 am »
Wow nice! Good job optimizing it!

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: OmnomIRC Numbers!
« Reply #3 on: May 12, 2011, 04:22:11 am »
Wow nice! :D

Nice for the ones who have crappy computers/limited internets, in fact. :P

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: OmnomIRC Numbers!
« Reply #4 on: May 12, 2011, 08:42:35 am »
Great job Netham! Is this same functionality as the old one also?
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: OmnomIRC Numbers!
« Reply #5 on: May 13, 2011, 03:58:15 pm »
Not yet, some things are still inoperational, but hopefully it will be, soon.

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: OmnomIRC Numbers!
« Reply #6 on: May 13, 2011, 06:13:25 pm »
most everything that's missing is client-side parsing of the data it's already getting, though.
Omnimaga Admin

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: OmnomIRC Numbers!
« Reply #7 on: May 13, 2011, 06:13:31 pm »
Seems to be pretty good. Omnimaga looks like its loading correctly and same speed as other webpages.

SO did someone win the game?
I lost the game
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: OmnomIRC Numbers!
« Reply #8 on: May 14, 2011, 11:16:06 am »
Omnimaga has been loading really fast.... Now I know why. Awesome work Netham!




Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: OmnomIRC Numbers!
« Reply #9 on: May 14, 2011, 12:16:33 pm »
I can tell that it is much faster. The only thing is that usually the rest of omni loads and it is still a white box with only the words omnomIRC in the topleft corner. Is it supposed to do this?
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: OmnomIRC Numbers!
« Reply #10 on: May 14, 2011, 02:36:00 pm »
I think so. I'm guessing it loads last so the rest of the page can load.




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: OmnomIRC Numbers!
« Reply #11 on: May 14, 2011, 07:21:25 pm »
I think this is when Netham45's server is overloaded. At least the entire site no longer waits until this loaded before loading anymore, though.

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: OmnomIRC Numbers!
« Reply #12 on: May 14, 2011, 09:20:41 pm »
It happens to me every time I load an omni page.
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: OmnomIRC Numbers!
« Reply #13 on: May 14, 2011, 10:59:51 pm »
You can never see OmnomIRC at all? O.O

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: OmnomIRC Numbers!
« Reply #14 on: May 14, 2011, 11:05:36 pm »
clear cache? :P

Also, I checked, and my servers been running as expected for the past day or so(between 28 and 40 connections, 60-80% RAM usage)
Omnimaga Admin