Skip to content

The bane of Cell-ACDC: obj.centroid #1070

@Teranis

Description

@Teranis

Description:

So I did a lot of benchmarking, and BY FAR the worst offender when it comes to compute time is obj.centroid when switching slices, and I can only assume frames too! So I had the idea to use cached centroids, where we init all centroids based on acdc_df and then only update when calling update_rp (and if we want to be super efficient, we can also give it a kwarg to only update specific IDs. An implementation solely based on acdc_df completely eradicated any lag whatsoever, which was very promising!

Metadata

Metadata

Assignees

No one assigned

    Labels

    🎈 EnhancementEnhancement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions