Skip to content

Conversation

likhith5697
Copy link

This PR optimizes SlidingWindowGatherer by:

  • Removing the unused finisher() method.
  • Always pushing the current state in integrator() since state.size() never reaches 3.
  • Using ArrayDeque efficiently for O(1) removeFirst operation.

@likhith5697
Copy link
Author

Hi, I’ve implemented the suggested changes:

  • Removed the unused finisher() method.
  • Always pushing the current state in integrator() since state.size() never reaches 3.
  • Using ArrayDeque efficiently for O(1) removeFirst operation.

The build and tests passed successfully. The PR is ready for review: #18855

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