mirror of
https://github.com/searxng/searxng
synced 2024-11-05 06:01:05 +00:00
[mod] remove gc.collect() after each user request
This commit is contained in:
parent
1ab4317f59
commit
426fadccb3
@ -16,11 +16,9 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
import typing
|
import typing
|
||||||
import gc
|
|
||||||
import threading
|
import threading
|
||||||
from timeit import default_timer
|
from timeit import default_timer
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
from _thread import start_new_thread
|
|
||||||
|
|
||||||
from searx import settings
|
from searx import settings
|
||||||
from searx.answerers import ask
|
from searx.answerers import ask
|
||||||
@ -182,7 +180,6 @@ class Search:
|
|||||||
# send all search-request
|
# send all search-request
|
||||||
if requests:
|
if requests:
|
||||||
self.search_multiple_requests(requests)
|
self.search_multiple_requests(requests)
|
||||||
start_new_thread(gc.collect, tuple())
|
|
||||||
|
|
||||||
# return results, suggestions, answers and infoboxes
|
# return results, suggestions, answers and infoboxes
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user