It is currently Tue Apr 30, 2024 1:46 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
Offline
 Post subject: pattern search question
Post #1 Posted: Tue Oct 20, 2015 9:19 am 
Lives in sente

Posts: 923
Location: UK
Liked others: 72
Was liked: 479
Rank: 5 dan
KGS: macelee
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?

Top
 Profile  
 
Offline
 Post subject: Re: pattern search question
Post #2 Posted: Tue Oct 20, 2015 2:52 pm 
Lives with ko

Posts: 170
Liked others: 32
Was liked: 119
Rank: KGS 4 kyu
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.

Top
 Profile  
 
Offline
 Post subject: Re: pattern search question
Post #3 Posted: Thu Nov 05, 2015 7:12 am 
Lives in sente

Posts: 923
Location: UK
Liked others: 72
Was liked: 479
Rank: 5 dan
KGS: macelee
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.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group