Skip to content

DT[by] performance test improvement #7687

@tdhock

Description

@tdhock

I see HEAD and base are much faster than others (right bottom panel).
But it seems to take more memory. (upper right panel)

Image

#7686 (comment)

Did somebody improve join max/min/aggregation speed recently? Which PR? We should add a commit from that PR, or from current master, to that atime test case, so we can maintain this speed improvement, going forward.

The code for the test case which uses more memory and is faster:

"DT[by] fixed in #4558" = atime::atime_test(
    setup = {
      N9 <- as.integer(N * 0.9)
      d <- data.table(
        id = sample(c(seq.int(N9), sample(N9, N-N9, TRUE))),
        v1 = sample(5L, N, TRUE),
        v2 = sample(5L, N, TRUE)
      )
    },
    expr = data.table:::`[.data.table`(d, , max(v1) - min(v2), by = id),

Metadata

Metadata

Assignees

No one assigned

    Labels

    atimeRequests related to adding/improving/monitoring performance regression tests via atime.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions