You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (haskey(x) && all(key(x) %chin% names(jval)) && suppressWarnings(is.sorted(jval, by=key(x)))) # TO DO: perhaps this usage of is.sorted should be allowed internally then (tidy up and make efficient)
IINM we can tell the output is sorted because V1 is the key and it appears as a name -- no need to compute the sort order all over again.
The text was updated successfully, but these errors were encountered:
From SO:
https://stackoverflow.com/questions/62019120/why-does-data-table-notation-for-column-retrieval-affect-speed/62028864#62028864
(timing is even worse on my machine)
The bottleneck appears to be this line:
data.table/R/data.table.R
Line 1339 in dd7609e
IINM we can tell the output is sorted because
V1
is the key and it appears as aname
-- no need to compute the sort order all over again.The text was updated successfully, but these errors were encountered: