Python for search engine development

C

corebump

hi everybody,
i planinng develop a search engine and i think using the python. Python
performance is enough this project?

Best Regards
 
M

Mike Meyer

corebump said:
hi everybody,
i planinng develop a search engine and i think using the python. Python
performance is enough this project?

If you're going to do the heavy lifting in Python, maybe. It depends
on what you're going to search, and the performance requirements for a
search.

On the other hand, if you use a Python wrapper around a full-text
search facility, so that python finds documents, takes queries and
formats results for the user, it should be just fine.

<mike
 
A

Alex Martelli

Well, Google applies some Python in their implementation, see
http://www-db.stanford.edu/~backrub/google.html

"Some" is correct. As for writing a search engine in Python _only_,
hmmm -- I honestly don't know. You could surely develop a working
implementation, but then, to make it perform well, you'd most likely
want to profile it and retune some CPU-intensive parts using pyrex, or
C.

So, if during your program development process you can find good
open-source C or C++ libraries offering a fast implementation of some of
the CPU-bound stuff you know you'll need, you would probably be better
off by wrapping those libraries (again using pyrex, or maybe SWIG, or
Boost Python for C++, ...) rather than redoing them from scratch in
Python (and probably later having to do some tuning on those parts).
One notably strong point of Python is that it "plays well with others",
and I would advise you to leverage this fact.


Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,264
Messages
2,571,326
Members
48,012
Latest member
BillSlater

Latest Threads

Top