-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Simplify hybrid evaluation #2190
Conversation
For testing, that the hybrid evaluator is actually doing something it might be useful to implement #1691, and also define an |
Performance suffers, a faster Rcpp_eval() would help:
![1](https://cloud.githubusercontent.com/assets/1741643/20225370/47dc2812-a843-11e6-8f69-2e10374a7210.png)
![2](https://cloud.githubusercontent.com/assets/1741643/20225371/47dc443c-a843-11e6-89de-00f3e2021268.png)
![3](https://cloud.githubusercontent.com/assets/1741643/20225373/47f1f836-a843-11e6-90d1-9143f24e1842.png)
![4](https://cloud.githubusercontent.com/assets/1741643/20225372/47f10d0e-a843-11e6-8f1a-e3f975e0ba1e.png)
![5](https://cloud.githubusercontent.com/assets/1741643/20225374/47fc0628-a843-11e6-8f39-2f7d5538d493.png)
|
Current coverage is 64.32% (diff: 3.57%)@@ master #2190 diff @@
==========================================
Files 194 193 -1
Lines 7967 7908 -59
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
- Hits 5094 5087 -7
+ Misses 2873 2821 -52
Partials 0 0
|
d197be9
to
c75de70
Compare
@hadley: Much better when we create + populate the environment with the active bindings only once (ad4f698). In the tested scenarios run time was slower by < 50%. We still can look into a faster
![1](https://cloud.githubusercontent.com/assets/1741643/20238931/0d223c80-a8f6-11e6-8a2a-d22797b2b927.png)
![2](https://cloud.githubusercontent.com/assets/1741643/20238932/0d349d9e-a8f6-11e6-9213-0b3b4388afd8.png)
![3](https://cloud.githubusercontent.com/assets/1741643/20238933/0d415034-a8f6-11e6-8a2e-4a908a5fb585.png)
![4](https://cloud.githubusercontent.com/assets/1741643/20238934/0d41d11c-a8f6-11e6-88f9-7cb921cf45ca.png)
![5](https://cloud.githubusercontent.com/assets/1741643/20238935/0d4248a4-a8f6-11e6-9b0d-b41a010ea94b.png)
|
That doesn't look too bad at all. (Also it looks like every big change is currently with both before and after commits. Probably on the the after label is necessary) |
Thanks. I've thought about showing only "after", but I like having "before" as a way to double-check and resolve potential ambiguities. Please also note that for the level established at 2c095 in the "windowed" plot, no "before" entry is detected before 7d918. |
c75de70
to
095bfd4
Compare
fa79106
to
01c534f
Compare
to properly collect C++ coverage
@hadley: PTAL. I'll release bindrcpp to CRAN soon, but this shouldn't affect the review. Tests now show one warning, which should go with #2298. NEWS entry:
|
Could you do another benchmark plot please? Should the news bullets also include mention of the new |
@hadley: Will do a benchmark plot. What should happen if the data frame contains columns named |
@krlmlr I think our definition should win so if you wanted to access a column named |
@hadley: Done. Performance is very much comparable with
|
b <- 2L | ||
|
||
testthat::expect_equal( | ||
filter( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The formatting of this seems a bit off
LGTM |
a88eae1
to
5c801b4
Compare
@hadley: Added minor reformatting tweaks and NEWS, will squash-merge after CI has run. Thanks for the fast reviews. |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
Fixes #912.
Fixes #1012
(but untestable because of hadley/lazyeval#78)Fixes #1400.
Fixes #1452.
Fixes #1719.
Fixes #2018.
Fixes #2125.
Fixes #2160.
Fixes #2223.
Fixes #2244.