Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speculative fix for vroom issue (#512)
* Speculative fix for vroom issue * Slightly more correct `cref()` * Add a NEWS bullet --------- Co-authored-by: Jenny Bryan <jenny.f.bryan@gmail.com>
- Loading branch information
1 parent
3691c68
commit 2f96e7b
Showing
4 changed files
with
37 additions
and
35 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -381,7 +381,7 @@ void vroom_write_out( | |
auto end = begin + num_lines; | ||
futures[idx][t++] = std::async( | ||
fill_buf, | ||
input, | ||
std::cref(input), | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jennybc
Author
Member
|
||
delim, | ||
eol, | ||
na_str, | ||
|
@@ -526,7 +526,7 @@ void vroom_write_out( | |
auto end = begin + num_lines; | ||
futures[idx][t++] = std::async( | ||
fill_buf, | ||
input, | ||
std::cref(input), | ||
delim, | ||
eol, | ||
na_str, | ||
|
FWIW, this appears to have fixed some flakiness we observed in the vroom test suite.
testthat.R
was failing (very seriously -- process crash) in our CI system ~8% of the time, after updating to latest CRAN, there were no crashes in 1200 repetitions.