Skip to content

[iOS/MacCatalyst] Background layer frame mapping has poor performance #24847

Open

Description

Description

Using https://github.com/davidortinau/AllTheLists app, and scrolling through collection view with Border inside we can clearly see that a good amount of time is spent in UpdateBackgroundLayerFrame which is needed to sync the sublayer with the UIView.Layer.

image

This has an impact on both MappingFrame and ContentView.LayoutSubviews:
image
image
image

Setting Frame on a background layer shouldn't take so much time.

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.90 SR9

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    area-controls-borderBorderarea-controls-collectionviewCollectionView, CarouselView, IndicatorViewp/2Work that is important, but is currently not scheduled for releaseplatform/iOS 🍎t/bugSomething isn't workingt/perfThe issue affects performance (runtime speed, memory usage, startup time, etc.)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions