Skip to content

Conversation

@VinayakTiwari1103
Copy link

The original code filters the calendar cal for each date in rebal_dates, which is slow for large lists due which processing taking much more time as compare to small lists and the updated code uses a vectorized search (via DatetimeIndex.searchsorted) to find all appropriate indices in one go. This will avoids explicit Python loops and repeated filtering also significantly improving performance while producing the same result for large dataset.
FIX:#317

The original code filters the calendar cal for each date in rebal_dates, which is slow for large lists due which processing taking much more time as compare to small lists  and the updated code uses a vectorized search (via DatetimeIndex.searchsorted) to find all appropriate indices in one go. This will avoids explicit Python loops and repeated filtering also significantly improving performance while producing the same result for large datasets.
FIX:goldmansachs#317
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