forked from Archives/langchain
Replace list comprehension with generator. (#5526)
# Replace list comprehension with generator. Since these strings can be fairly long, it's best to not construct unnecessary temporary list just to pass it to `join`. Generators produce items one-by-one and even though they are slightly more expensive than lists in terms of CPU they are much more memory-friendly and slightly more readable.searx_updates
parent
4c8aad0d1b
commit
359fb8fa3a
Loading…
Reference in New Issue