summaryrefslogtreecommitdiff
path: root/searx/search
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-05-07 14:23:30 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-05-21 17:23:18 +0200
commit426fadccb3cf6168c791376afdf2f810470c2d8d (patch)
tree8fc8445beabfc569e51c7ad16924e09d953836e1 /searx/search
parent1ab4317f59df92d3677ce2284ff58d9be124e02f (diff)
downloadsearxng-426fadccb3cf6168c791376afdf2f810470c2d8d.tar.gz
searxng-426fadccb3cf6168c791376afdf2f810470c2d8d.zip
[mod] remove gc.collect() after each user request
Diffstat (limited to 'searx/search')
-rw-r--r--searx/search/__init__.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/searx/search/__init__.py b/searx/search/__init__.py
index acc97d1e9..936fb8169 100644
--- a/searx/search/__init__.py
+++ b/searx/search/__init__.py
@@ -16,11 +16,9 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
'''
import typing
-import gc
import threading
from timeit import default_timer
from uuid import uuid4
-from _thread import start_new_thread
from searx import settings
from searx.answerers import ask
@@ -182,7 +180,6 @@ class Search:
# send all search-request
if requests:
self.search_multiple_requests(requests)
- start_new_thread(gc.collect, tuple())
# return results, suggestions, answers and infoboxes
return True