Skip to content

FSharp.Interactive.Session.bufferEvent causing UI delays that are 5 > x >= 2 seconds #6077

Closed

Description

@cartermp

From my UI delays:

image

This function is the source:
https://github.com/Microsoft/visualfsharp/blob/fead0aac540485683f694524eadad79983ec28d9/vsintegration/src/FSharp.VS.FSI/sessions.fs#L80-L124

I believe the whole thing runs on the UI thread which isn't inherently bad, but a >=2 second delay is a bit much.

Activity

  1. added
    Area-VS-FSI
    on Jan 10, 2019
  2. added this to the 16.0 milestone on Jan 10, 2019
  3. abelbraaksma commented on Jan 11, 2019

    @abelbraaksma
    Contributor

    Does this happen when you type in FSI inside VS? Or is this called when typing in the main code window, inside some large project?

  4. cartermp commented on Jan 11, 2019

    @cartermp
    ContributorAuthor
  5. jackmott commented on Feb 5, 2019

    @jackmott
    Contributor

    Maybe a concurrentqueue would perform better here?

  6. cartermp commented on Feb 5, 2019

    @cartermp
    ContributorAuthor

    I doubt a ConcurrentQueue would help. It runs this routine on the UI thread.

  7. jackmott commented on Feb 5, 2019

    @jackmott
    Contributor

    What are the locks for? Just in case the Timer fires off the function at overlapping intervals? Could we make that impossible and not need locks?

    Alternatively could we use the C# Queue here instead of a linkedlist for better memory locality?

  8. modified the milestones: 16.0, 16.1 on Feb 21, 2019
  9. modified the milestones: 16.1, 16.2 on Apr 23, 2019
  10. modified the milestones: 16.2, Backlog on Apr 30, 2019
  11. cartermp commented on Sep 11, 2020

    @cartermp
    ContributorAuthor

    I haven't reproduced this at all and my UI delays internally don't show this either. Will close this out since others haven't really noticed anything significant.

  12. removed this from the Backlog milestone on Sep 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-VS-FSIFeature Improvement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions