Skip to content

Commit

Permalink
Don't add class attribute for internal-facing classes
Browse files Browse the repository at this point in the history
The class attribute is unneded for these classes, and this improves
performance.
  • Loading branch information
wch committed Aug 29, 2014
1 parent 33d78fc commit 6923a11
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions R/cache.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
CacheContext <- R6Class(
'CacheContext',
portable = FALSE,
class = FALSE,
public = list(
.dirty = TRUE,
# List of functions that return TRUE if dirty
Expand Down
2 changes: 2 additions & 0 deletions R/fileupload.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
FileUploadOperation <- R6Class(
'FileUploadOperation',
portable = FALSE,
class = FALSE,
public = list(
.parent = NULL,
.id = character(0),
Expand Down Expand Up @@ -81,6 +82,7 @@ FileUploadOperation <- R6Class(
FileUploadContext <- R6Class(
'FileUploadContext',
portable = FALSE,
class = FALSE,
public = list(
.basedir = character(0),
.operations = 'Map',
Expand Down
1 change: 1 addition & 0 deletions R/map.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
Map <- R6Class(
'Map',
portable = FALSE,
class = FALSE,
public = list(
.env = NULL,

Expand Down
2 changes: 2 additions & 0 deletions R/middleware.R
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ staticHandler <- function(root) {
## ------------------------------------------------------------------------
HandlerList <- R6Class("HandlerList",
portable = FALSE,
class = FALSE,
public = list(
handlers = list(),

Expand Down Expand Up @@ -258,6 +259,7 @@ HandlerList <- R6Class("HandlerList",

HandlerManager <- R6Class("HandlerManager",
portable = FALSE,
class = FALSE,
public = list(
handlers = "HandlerList",
wsHandlers = "HandlerList",
Expand Down
1 change: 1 addition & 0 deletions R/priorityqueue.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
PriorityQueue <- R6Class(
'PriorityQueue',
portable = FALSE,
class = FALSE,
public = list(
# Keys are priorities, values are subqueues (implemented as list)
.itemsByPriority = 'Map',
Expand Down
2 changes: 2 additions & 0 deletions R/react.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Context <- R6Class(
'Context',
portable = FALSE,
class = FALSE,
public = list(
id = character(0),
.label = character(0), # For debug purposes
Expand Down Expand Up @@ -77,6 +78,7 @@ Context <- R6Class(
ReactiveEnvironment <- R6Class(
'ReactiveEnvironment',
portable = FALSE,
class = FALSE,
public = list(
.currentContext = NULL,
.nextId = 0L,
Expand Down
1 change: 1 addition & 0 deletions R/reactives.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ NULL
Dependents <- R6Class(
'Dependents',
portable = FALSE,
class = FALSE,
public = list(
.dependents = 'Map',

Expand Down
1 change: 1 addition & 0 deletions R/shiny.R
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ NULL
ShinySession <- R6Class(
'ShinySession',
portable = FALSE,
class = FALSE,
public = list(
.websocket = 'ANY',
.invalidatedOutputValues = 'Map',
Expand Down
1 change: 1 addition & 0 deletions R/stack.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Stack <- R6Class(
'Stack',
portable = FALSE,
class = FALSE,
public = list(

initialize = function(init = 20L) {
Expand Down
1 change: 1 addition & 0 deletions R/timer.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ now <- function() {
TimerCallbacks <- R6Class(
'TimerCallbacks',
portable = FALSE,
class = FALSE,
public = list(
.nextId = 0L,
.funcs = 'Map',
Expand Down
1 change: 1 addition & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ registerDebugHook <- function(name, where, label) {
Callbacks <- R6Class(
'Callbacks',
portable = FALSE,
class = FALSE,
public = list(
.nextId = integer(0),
.callbacks = 'Map',
Expand Down

0 comments on commit 6923a11

Please sign in to comment.