Skip to content

[Perf] useActivityTreeWithRenderer slowdown exponentially #5162

@compulim

Description

@compulim

Is it an issue related to Adaptive Cards?

No

Is this an accessibility issue?

No

What version of Web Chat are you using?

Latest production

Which distribution are you using Web Chat from?

Bundle (webchat.js)

Which hosting environment does this issue primarily affect?

Web apps

Which browsers and platforms do the issue happened?

Browser: Edge (latest), Browser: Chrome (latest)

Which area does this issue affect?

Chat history

Which theme pack does this issue affect?

I did not test it on other theme packs

What is the public URL for the website?

No response

Please describe the bug

Adding 20 activities in a batch continuously, we see the render time continue to increase.

Do you see any errors in console log?

No response

How to reproduce the issue?

  1. Render 20 activities of plain text
  2. Wait for 20 activities to show in the chat history
  3. Measure the time it takes to complete step 1 and 2
  4. Loop to 1 until 200 activities is shown

What do you expect?

The rendering time is reasonably curbed.

What actually happened?

Comparing the 3rd activity with 197th activity, we are seeing the ActivityTreeComposer took significantly more time to complete.

image

image

Do you have any screenshots or recordings to repro the issue?

No response

Adaptive Card JSON

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-performancebugIndicates an unexpected problem or an unintended behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions