Two virtual environments, one python 2.7, the other python 3.7
Both have same code and same data, using django-haystack with whoosh 2.7.4
The index folder is about 170M under python 2.7, about 220M under python 3.7 (same data but 50M difference in size)
But the real huge difference lies in the search speed:
A basic simple search is quite fast under python 2.7 (about 0.1 sec), but really slow under python 3.7 (5~10 sec, about 100 times slower).
The following calls take the bulk of the time under python 3.7:
index.searcher()
index.doc_count()
parser.parse(query_string)
collector.prepare(self, q, context)
Two virtual environments, one python 2.7, the other python 3.7 Both have same code and same data, using django-haystack with whoosh 2.7.4 The index folder is about 170M under python 2.7, about 220M under python 3.7 (same data but 50M difference in size)
But the real huge difference lies in the search speed: A basic simple search is quite fast under python 2.7 (about 0.1 sec), but really slow under python 3.7 (5~10 sec, about 100 times slower).
The following calls take the bulk of the time under python 3.7: index.searcher() index.doc_count() parser.parse(query_string) collector.prepare(self, q, context)