Riven
|
 |
«
Posted
2012-07-23 01:57:51 » |
|
Tosti
|
|
|
|
Riven
|
 |
«
Reply #1 - Posted
2012-07-23 02:00:55 » |
|
with cheese 
|
|
|
|
teletubo
|
 |
«
Reply #2 - Posted
2012-07-23 02:04:12 » |
|
better than mayonese.
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Riven
|
 |
«
Reply #3 - Posted
2012-07-23 02:04:51 » |
|
(I'm testing the new push-notifications)
|
|
|
|
teletubo
|
 |
«
Reply #4 - Posted
2012-07-23 02:13:34 » |
|
good luck with that. whatever it is!
|
|
|
|
Cero
|
 |
«
Reply #5 - Posted
2012-07-23 03:50:43 » |
|
|
|
|
|
Riven
|
 |
«
Reply #6 - Posted
2012-07-23 04:01:16 » |
|
mkay, push notifications work.
there is a heartbeat every 30s, within 1 http response, and you get notified of a new topic in about 1 sec, it also tells you when there is a new message in the topic you're watching.
I enabled this for guests too, and the server-load actually went down (java impl)
please try to break it
|
|
|
|
ra4king
|
 |
«
Reply #7 - Posted
2012-07-23 04:45:34 » |
|
Hasn't JGO always had push notifications?
|
|
|
|
Riven
|
 |
«
Reply #8 - Posted
2012-07-23 04:49:26 » |
|
Hasn't JGO always had push notifications?
it had polling for ~10 concurrent users (logged in members), which was grinding the server to a halt... Now all ~100-200 users (members & guests) are connected and waiting for notifications, and the server hardly notices. PHP vs Java baby! 
|
|
|
|
ra4king
|
 |
«
Reply #9 - Posted
2012-07-23 05:26:28 » |
|
Wow! Why was PHP causing such a slowdown?
|
|
|
|
Games published by our own members! Check 'em out!
|
|
h3ckboy
|
 |
«
Reply #10 - Posted
2012-07-23 06:37:48 » |
|
I imagine because it is push vs poll.
|
|
|
|
|
Riven
|
 |
«
Reply #11 - Posted
2012-07-23 06:42:12 » |
|
I imagine because it is push vs poll.
It's because an Apache+PHP+SMF HTTP request takes about 75-200ms of CPU time, while a Java HTTP request takes about 0.1ms of CPU time. I could go into detail about how awesome my custom webserver is, but I'll leave that for another day.
|
|
|
|
jonjava
|
 |
«
Reply #12 - Posted
2012-07-23 09:00:15 » |
|
*Wants to take a look at Riven's java webserver*
|
|
|
|
Riven
|
 |
«
Reply #13 - Posted
2012-07-23 11:20:36 » |
|
*Wants to take a look at Riven's java webserver*
The guts of it: (it's a mess, too)
|
|
|
|
_Al3x
|
 |
«
Reply #14 - Posted
2012-07-23 11:31:47 » |
|
You're awesome Riven. Can't say anything else here so...  By the way, can you add a download button for the integrated pastebin? Thanks!
|
|
|
|
Riven
|
 |
«
Reply #15 - Posted
2012-07-23 11:36:19 » |
|
Nope. It won't compile anyway, it lacks a few dozen utility classes. Also, it's not meant to be usable, which is both enforced by the pastebin-release and the code quality. (You should be happy that I added code-block-separators in the pastebin  ) You can see I wrap Input/OutputStreams which is surprisingly powerful, expecially UnclosableOutputStream  because all kinds of utility-methods close the stream at the end of their run, or other classes like GZipOutputStream actually require a close() to finalize the stream, but you really don't want to close the underlying tcp-connection... hence the Unclosables.
|
|
|
|
_Al3x
|
 |
«
Reply #16 - Posted
2012-07-23 11:42:02 » |
|
You got me wrong ^_^ I don't want to download JUST your code, but every pastebin shared here. A simple download button that leaves a pastebin_[some_numbers_or_name].text in my desktop/download folder will be greatly appreciated 
|
|
|
|
Riven
|
 |
«
Reply #17 - Posted
2012-07-23 11:44:17 » |
|
But, but, that's even more of a hassle!
Just copy/paste from the textarea, mkay?
|
|
|
|
Sickan
|
 |
«
Reply #18 - Posted
2012-07-23 11:49:34 » |
|
But, but, that's even more of a hassle!
Just copy/paste from the textarea, mkay?
My answer to that was summed up nicely in your first sentence. 
|
I'm just here to learn.
|
|
|
Riven
|
 |
«
Reply #19 - Posted
2012-07-23 11:56:36 » |
|
It's not my role to make your life any easier. Further, it's not my intension to make my life any easier either. Last saturday I visited some uncle I hadn't seen in three years and I basically told him the same. Later we had a wonderful dinner and I complimented him on his cooking. I lost my train of thought but I mask it by looking confident. 
|
|
|
|
_Al3x
|
 |
«
Reply #20 - Posted
2012-07-23 12:02:57 » |
|
Just copy/paste from the textarea, mkay?
 It's not my role to make your life any easier.
Don't get me wrong, I appreciate you and your work here a lot! <3 Sorry if I bother you in any way  I just though it would be nice, since it's in pastebin.com that's all 
|
|
|
|
Riven
|
 |
«
Reply #21 - Posted
2012-07-23 12:04:14 » |
|
Aw, don't quote me out of context! It was a joke.
|
|
|
|
_Al3x
|
 |
«
Reply #22 - Posted
2012-07-23 12:13:20 » |
|
 I didn't mean to and don't see how or where I did it, omg I should run embarrassed under my bed now!  [size=1pt]Please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me, please don't be mad at me[/size] PS: I like jokes 
|
|
|
|
ra4king
|
 |
«
Reply #23 - Posted
2012-07-23 22:19:51 » |
|
Can't. Stop. Laughing. 
|
|
|
|
Rorkien
|
 |
«
Reply #24 - Posted
2012-07-23 23:17:37 » |
|
JGO
The only place where you can discuss about Gastronomy, Mortal Kombat, Webservers, Notepads and Animu...
...in a single thread.
|
|
|
|
|
ReBirth
|
 |
«
Reply #25 - Posted
2012-07-24 04:59:11 » |
|
And meme, rock star, pastebin, OS,...
|
|
|
|
|