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

Optimise/simplify some stream filtering for the REST API #7221

Merged

Conversation

stejbac
Copy link
Contributor

@stejbac stejbac commented Jul 28, 2024

Replace the streaming of Map entry sets to pick out a single entry by key equality, and instead do a lookup into the map. Also, optimise the date range filtering in TradeStatisticsManager::getTradeStatisticsList by using RangeUtils::subSet to avoid scanning the entire collection. (This method is applicable, as the trade statistics set is navigable and naturally sorted by date.)

Replace the streaming of Map entry sets to pick out a single entry by
key equality, and instead do a lookup into the map. Also, optimise the
date range filtering in 'TradeStatisticsManager::getTradeStatisticsList'
by using 'RangeUtils::subSet' to avoid scanning the entire collection.
(This method is applicable, as the trade statistics set is navigable and
naturally sorted by date.)
Copy link
Collaborator

@HenrikJannsen HenrikJannsen left a comment

Choose a reason for hiding this comment

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

utACK

Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@HenrikJannsen HenrikJannsen merged commit 5d86410 into bisq-network:master Aug 29, 2024
3 checks passed
@alejandrogarcia83 alejandrogarcia83 added this to the v1.9.18 milestone Sep 8, 2024
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.

3 participants