Skip to content

Conversation

@Connormiha
Copy link

The original code creates an intermediate list before converting it to a set, which is less efficient in memory and speed. Replacing it with a set comprehension {...} builds the set directly, making the code cleaner and faster while keeping the same functionality (deduplication and stripping). This change improves readability and performance with minimal modification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant