-
Notifications
You must be signed in to change notification settings - Fork 71
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
Speedup #90
Merged
Merged
Speedup #90
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ad70d87
remove mutate statments
lorenzwalthert 2c004b7
outsource opening
lorenzwalthert 1497a46
transmute / select
lorenzwalthert f79bbbd
replace dplyr with base R
lorenzwalthert 8b4debf
early return
lorenzwalthert 3fa0a13
purrr over base R
lorenzwalthert bc3be9a
more likely condition first
lorenzwalthert 3d41115
primer on performance
lorenzwalthert 1b1792d
use dplyr::between(). Closes #83
lorenzwalthert 5ea6961
drop space in vignette name.
lorenzwalthert bdb625b
make times argument in rep_char scalar.
lorenzwalthert 32ef3a4
use base R split instead of nest()
lorenzwalthert c3c5a88
!any(cond) instead of all(!cond)
lorenzwalthert 3fe76fe
lazy
lorenzwalthert 02742a6
pipe -> nested call
lorenzwalthert cbf94f2
simplify
lorenzwalthert 30aa043
use compute_indent_indices that simplifies code
lorenzwalthert 1690b8f
drop one-step pipe
lorenzwalthert 9b9af35
document
lorenzwalthert 65d99f7
move short to tokenize
lorenzwalthert c339fa8
update documentation for needs_indention and drop unnecessary paramet…
lorenzwalthert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Maybe faster:
Or:
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.
I tried that but I felt since this function is only called once and it seems pretty inexpensive (10 ms out of 15'460 for the whole run, file R/nested.R), I left it as is, for better legibility. Or do you prefer the rearrangement anyways?
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.
I didn't know that, I just noticed you changed it and assumed that performance matters here. Never mind.