SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] collect garbage after searches to reduce memory footprint
Adam Tauberffbee4bb8273
diff --git a/searx/search.py b/searx/search.pyindex 8b8ed4762..6de07d2b5 100644--- a/searx/search.py+++ b/searx/search.py@@ -15,14 +15,14 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.(C) 2013- by Adam Tauber, <[email protected]>'''+import gcimport threading-import searx.poolrequests as requests_lib+from thread import start_new_threadfrom time import time-from searx import settings+import searx.poolrequests as requests_libfrom searx.engines import (categories, engines)-from searx.languages import language_codesfrom searx.utils import gen_useragentfrom searx.query import Queryfrom searx.results import ResultContainer@@ -347,6 +347,7 @@ class Search(object):return self# send all search-requestthreaded_requests(requests)+ start_new_thread(gc.collect, tuple())# return results, suggestions, answers and infoboxesreturn self