Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce generation of temporary objects #7950

Merged
merged 3 commits into from Aug 4, 2023
Merged

Conversation

panzi
Copy link
Contributor

@panzi panzi commented Jul 19, 2023

Just a tiny change to use list.append(...) and list.extend(...) instead of list += [...] so that no unnecessary temporary lists are created.

Since its a tiny miscellaneous thing I guess @baskaryan is the maintainer to tag?

Using list.append(...) and list.extend(...) instead of list += [...].
@vercel
Copy link

vercel bot commented Jul 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Aug 4, 2023 3:30am

@dosubot dosubot bot added Ɑ: embeddings Related to text embedding models module 🤖:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs labels Jul 19, 2023
@hwchase17 hwchase17 added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Aug 4, 2023
@hwchase17 hwchase17 merged commit 873a80e into langchain-ai:master Aug 4, 2023
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ɑ: embeddings Related to text embedding models module lgtm PR looks good. Use to confirm that a PR is ready for merging. 🤖:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants