Skip to content

Perl Script (possible) Improvement #1

@stevan

Description

@stevan

You may get some speed/memory improvements by turning the while statement in Perl into a statement modifier.

push @rows, [split(/\t/)] while <>;

With this change, Perl should not have to create a new lexical scope for the while block, which should save on memory and speed. Note that I haven't benchmarked this (my internet connection is not good enough at the moment to pull your full repo, TSVs and all) and it is entirely possible that it won't be significant enough to matter either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions