Skip to content

Performance question, nested for comprehensions #1

@ramn

Description

@ramn

Hi, a question about performance. Reading your blogpost http://ochafik.com/blog/?p=806
you have slow code as such:

for (iteration <- 0 until iterations) {
    for (i <- 0 until n) {
    }
}

Is the performance affected if you change it to:

for (iteration <- 0 until iterations; i <- 0 until n) {
    ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions