jeffrey-s-foster/rtc — Issue #21: Allow global disabling of Rtc
Author: jtoman
Created: 2012-03-08 15:35:55+00:00
State: open

The typechecking performed by Rtc has some computational overhead. For instance, binding a passed block via & is slower than using implicitly passed blocks. In addition, the type checking code itself will impose some overhead. For this reason, it would be desirable for wrapping and typechecking to be completely disabled at runtime in certain situations (i.e. in a production environment). This would be different from the options mentioned in #7, rather than ignoring type mismatches, it would completely disable type checking and wrapping. However, it seems that as we allow the rtc_type to be accesssible at runtime in client code we should still allow annotations. How to disable Rtc globally is up for discussion, my initial impression would be an environmental variable, but I'm not sure if that's how things are done in the rails world. @jeffrey-s-foster should probably chime in on this and whether we want to move to a file based configuration.