R 3.5.0 brings (an experimental implementation of) the ALTREP framework.
It would be very useful to detect and use compact expressions like 1:N. For example, when a range is specified in i, detecting a ALTREP vector means that we don't have to run a loop to detect ranges anymore (#35).
Also, ALTREP provides for a mechanism for delayed loading of the actual vector data until it's required. Perhaps that can be used to return vectors in compact format:
# returns a compact object without actual data
x <- ft[10:20, X]
# regular methods can use the object
max(x)
R 3.5.0
brings (an experimental implementation of) the ALTREP framework. It would be very useful to detect and use compact expressions like1:N
. For example, when a range is specified in i, detecting a ALTREP vector means that we don't have to run a loop to detect ranges anymore (#35).(see the ALTREP draft vignette for details)
Also, ALTREP provides for a mechanism for delayed loading of the actual vector data until it's required. Perhaps that can be used to return vectors in compact format: