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

Added implementation for SuppressBlankFilter #18

Merged
merged 2 commits into from
Feb 14, 2024

Conversation

jkrukowski
Copy link
Contributor

  • added implementation for SuppressBlankFilter
  • added tests

let allCurrentTokens = currentSegments.reduce([]) { $0 + $1.tokens }
let allCurrentTokens = currentSegments.flatMap { $0.tokens }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think flatMap will be more performant here

@ZachNagengast ZachNagengast self-requested a review February 12, 2024 16:42
Copy link
Contributor

@ZachNagengast ZachNagengast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, appreciate the eye on performance. I made one suggestion below to speed it up a bit more, lmk your thoughts

Copy link
Contributor

@ZachNagengast ZachNagengast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look great, nicely done again!

@ZachNagengast ZachNagengast merged commit 5f3353a into argmaxinc:main Feb 14, 2024
1 check passed
@jkrukowski jkrukowski deleted the supress-blank-filter branch February 14, 2024 17:42
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.

2 participants