Skip to content

Commit

Permalink
Use smaller initial vector size and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bnaras committed Nov 5, 2024
1 parent db3130c commit c4756ee
Show file tree
Hide file tree
Showing 1,657 changed files with 19,844 additions and 13,315 deletions.
2 changes: 1 addition & 1 deletion R/coll_utils.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#### #' Create a vec using a list
#### #' @return a list that provides a vector as well as a deque
make_vec <- function() {
vec <- vector(mode = "list", length = 128L) ## initial length of 128!
vec <- vector(mode = "list", length = 29L) ## initial length of 29!
n <- 0L
push_back <- function(what) { n <<- n + 1L; vec[[n]] <<- what; invisible(what) }
push_front <- function(what) { vec <<- append(list(what), vec); n <<- n + 1L; invisible(what) }
Expand Down
17 changes: 9 additions & 8 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c4756ee

Please sign in to comment.