Page 4 of 9

Re: Sneak Peek

Posted: Mon Jul 26, 2010 5:45 am
by ethanb
daniel_the_smith wrote:
ethanb wrote:I found it browsing through taisha variations - one pattern was played with minor variations in only 3 games, but in places where all the "next moves" were the same move, or if I went to a track with only one game, the ghost stones weren't rendered.


Right now I have it set to stop showing the averaging when there's fewer than 5 games to average together. I'm not sure, but it sounds like that is the cause of what you're seeing?


Yeah, I guess so (did that behavior change some recently? When I made that initial post, it seemed like the trigger was different) I guess I don't understand why this is a feature and not a bug. :)

Re: Sneak Peek

Posted: Mon Jul 26, 2010 6:13 am
by Li Kao
daniel_the_smith wrote:
kokomi wrote:Hey, i like it. But it's a bit slow? Or maybe my internet is slow :-?


I seem to recall you're in China-- if so, you're a loooong way from the server, which could explain it. Unfortunately there wouldn't be much I could do about that at the moment. :(


It's pretty slow for me too, and I'm from Germany. After a click it takes about two seconds for the stone to appear. My ping to dailyjoseki.com is 170ms and I'm using opera 10.60.

Re: Sneak Peek

Posted: Mon Jul 26, 2010 8:02 am
by daniel_the_smith
Hm, each click right now requires about 20-40k of html as a response from the server, that's probably the source of Li Kao's slowness if not kokomi's. There are a few things I can try to do to get that reduced to a more reasonable number. I'm guessing it goes a lot faster if you get to a position that doesn't show the ghost stones?

Re: Sneak Peek

Posted: Mon Jul 26, 2010 8:23 am
by daniel_the_smith
Ugh, it's pretty broken in IE right now. I'll (try to) fix it later. For now, use a real browser.

Is there a convenient way to test with IE when you're developing in ubuntu?

Re: Sneak Peek

Posted: Mon Jul 26, 2010 8:41 am
by fwiffo
VMWare is your best bet. Not convenient, I'll admit.

Re: Sneak Peek

Posted: Mon Jul 26, 2010 8:43 am
by amnal
If you consider wine to be convenient, IE seems to at least work in it. I used playonlinux to install it without the fiddliness of setting the twiddly bits manually, and it seems to at least run.

I'm not sure if this works for the most recent versions.

Re: Sneak Peek

Posted: Mon Jul 26, 2010 7:36 pm
by kokomi
daniel_the_smith wrote:Hm, each click right now requires about 20-40k of html as a response from the server, that's probably the source of Li Kao's slowness if not kokomi's. There are a few things I can try to do to get that reduced to a more reasonable number. I'm guessing it goes a lot faster if you get to a position that doesn't show the ghost stones?


maybe you can make it memorise somewhere, so when someone makes a request by moving a stone, it will load from memorise, rather than do all the process again? And at the back of it, you can add the requests into your database. hmm.. anyway, i'm very noob on computer...

Re: Sneak Peek

Posted: Tue Jul 27, 2010 1:30 am
by daniel_the_smith
kokomi wrote:maybe you can make it memorise somewhere, so when someone makes a request by moving a stone, it will load from memorise, rather than do all the process again? And at the back of it, you can add the requests into your database. hmm.. anyway, i'm very noob on computer...


It sounds like you're talking about caching-- I believe the slowness is caused by the total amount of data that needs to get sent, not the server processing time, so I don't think that would help in this case.

I enabled compression on the test server, which packs things down quite a bit. Can those of you in China and Germany (or anywhere else) tell me if

http://dailyjoseki.com:30080/browse

is faster than

http://dailyjoseki.com/browse

? Thanks :)

Re: Sneak Peek

Posted: Tue Jul 27, 2010 1:33 am
by Li Kao
I notice no real difference. Feels like the one at :80 is even a bit faster, but probably they're about the same. And a few dozen kB shouldn't take much time. I normally can DL about 1MB/s.

Re: Sneak Peek

Posted: Tue Jul 27, 2010 2:35 am
by Harleqin
I cannot really tell the difference. The number of ghost stones has a noticable effect, but not which version I use.

Re: Sneak Peek

Posted: Tue Jul 27, 2010 4:48 am
by daniel_the_smith
Hm, thanks guys.

Do either of you (or anyone else someplace distant) have the firebug extension to firefox (or equivalent) installed? It has a net panel which breaks down the time spent waiting. I'm curious if the majority of the time for you is spent "waiting" or "receiving". When I run, I see total times 200-600 ms, with the majority spent "waiting".

I will have to add some profiling to the server just to make sure it's not something about my code, but I don't see why my server would execute slower for you than me...

Re: Sneak Peek

Posted: Tue Jul 27, 2010 7:13 pm
by daniel_the_smith
OK, I've figured out what's taking the time, and yes, it is the server. I've done one thing that makes a slight improvement (dailyjoseki.com:30080 if you want to check). I will probably have to change the way I'm doing things a little (I'm stressing out golang's template package :( ) to get the speed I'm after. It is handling most requests in < 400ms (which I consider hideously slow, but better than the 600ms it was); if two people are using it at the same time, it will obviously be slower.

Also on the 30080 test server: I've added IE's filter:alpha(x) (still untested) and removed the 5 game minimum requirement for showing ghost stones. I'm not sure if I like that or not, it's kinda distracting when it shows two games and you're trying to decide which stones go with which game. I didn't have it enabled originally because I figured five games is probably not a very representative sample. I wouldn't mind hearing people's thoughts on this.

Re: Sneak Peek

Posted: Thu Jul 29, 2010 3:56 pm
by Dusk Eagle
Hey Daniel,

I just a have a mild bug to report. When browsing through a variation and hitting 'pass,' and then hitting 'back' (the website's back button, not the browser's), the website takes you back two moves (the move before the pass) instead of just taking back the pass itself. I think it would make more sense to simply take back the pass. Also, if you play a variation and then pass -> respond -> back, the website takes you back to before the pass.

I'm not sure if I'm making myself clear here, do you understand what I mean?

Re: Sneak Peek

Posted: Fri Jul 30, 2010 5:21 am
by daniel_the_smith
Dusk Eagle wrote:Hey Daniel,

I just a have a mild bug to report. When browsing through a variation and hitting 'pass,' and then hitting 'back' (the website's back button, not the browser's), the website takes you back two moves (the move before the pass) instead of just taking back the pass itself. I think it would make more sense to simply take back the pass. Also, if you play a variation and then pass -> respond -> back, the website takes you back to before the pass.

I'm not sure if I'm making myself clear here, do you understand what I mean?


Yeah, I know what you're talking about. I will change that, most likely when I get back from go congress.

everyone:

I updated the main server (the :30080 server is no longer running). IE should work now (still untested but I'm emitting the right thing now, I think). I found a way to shave 100-200ms off each request, so it is slightly faster.

Re: Sneak Peek

Posted: Fri Jul 30, 2010 5:31 am
by Li Kao
The back buttons stopped working for me.