Life In 19x19
http://www.lifein19x19.com/

pattern search question
http://www.lifein19x19.com/viewtopic.php?f=18&t=12371
Page 1 of 1

Author:  macelee [ Tue Oct 20, 2015 9:19 am ]
Post subject:  pattern search question

Can anyone explain the principle of web-based pattern search?

When using a pattern search application (Kombilo or its Windows variant Drago), at initialisation stage, the program process a collection of sgf files, extract pattern information to save in files. I suppose these files get loaded into the memory so search within the application can be quite efficient.

On a web-based application, I imagine one cannot load the pattern files when responding to a user request because loading big files would take too long - wait more than 1 or 2 seconds is probably not acceptable for a web application. So what is the suitable technology to implement web-based pattern search?

Author:  RĂ©mi [ Tue Oct 20, 2015 2:52 pm ]
Post subject:  Re: pattern search question

Your server has to keep the pattern tables in RAM between requests. You must not start the program from scratch each time. Technology such as fastcgi allows to do this easily.

Author:  macelee [ Thu Nov 05, 2015 7:12 am ]
Post subject:  Re: pattern search question

Thanks for the tip. I am now able to do this efficiently by writing a server loading the pattern tables and then listening to a port. Then a client program send query to that port. Invent a simple protocol and do a little bit socket programming.

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/