From 426fadccb3cf6168c791376afdf2f810470c2d8d Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Fri, 7 May 2021 14:23:30 +0200 Subject: [PATCH] [mod] remove gc.collect() after each user request --- searx/search/__init__.py | 3 --- 1 file changed, 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