-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle duplicate index values in C for window_idx
This basically moves the R code into C, with minor changes. The C code pre-(and over-)allocates the result and loops over the locations in reverse order. Corwin suggested better long-term solutions (e.g. fix merge.xts() to handle duplicate index values correctly), but this this commit addresses the immediate performance regression. Also add more benchmarks. Fixes #251.
- Loading branch information
1 parent
1d707c5
commit 61975ad
Showing
3 changed files
with
63 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters