question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Performance Degradation on 0.10.0-preview2

See original GitHub issue

After upgrading a project which uses AvaloniaEdit from 0.9.0 to 0.10.0-preview2 things are working, well, 10 times slower. Using Ubuntu 18.04 LTS KDE, the following markup is used to instantiate and draw the editor:

<avaloniaEdit:TextEditor
    FontFamily="Ubuntu Mono"
    x:Name="AvaloniaEdit"
    HorizontalAlignment="Stretch"
    VerticalAlignment="Stretch"
    HorizontalScrollBarVisibility="Auto"
    VerticalScrollBarVisibility="Auto">
    <avaloniaEdit:TextEditor.Options>
        <avaloniaEdit:TextEditorOptions 
            ConvertTabsToSpaces="True"
            IndentationSize="4"
            ShowTabs="True" />
    </avaloniaEdit:TextEditor.Options>
</avaloniaEdit:TextEditor>

This is how it was working with 0.9.* (absolutely fast):

ezgif-7-0c2fbeea4d6e

This is how it works after the upgrade to 0.10.0-preview* (almost a slideshow):

ezgif-7-c95c19d00bb4

The following xml file represents the highlighting: https://gist.github.com/worldbeater/9f85062caddeceb8cf97719c306546e4

dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.1.100
 Commit:    cd82f021f4

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  18.04
 OS Platform: Linux
 RID:         ubuntu.18.04-x64
 Base Path:   /usr/share/dotnet/sdk/3.1.100/

Host (useful for support):
  Version: 3.1.0
  Commit:  157910edee

.NET Core SDKs installed:
  2.1.802 [/usr/share/dotnet/sdk]
  2.2.402 [/usr/share/dotnet/sdk]
  3.1.100 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.14 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.14 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.14 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

Ping me if any further details are required.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
Gillibaldcommented, Aug 8, 2020

That issue is unrelated. Totally different text rendering stack.

0reactions
worldbeatercommented, Sep 4, 2020

@aelij just verified with AvaloniaEdit added as a submodule, and can confirm that https://github.com/AvaloniaUI/AvaloniaEdit/pull/110 really fixes the issue on Linux!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Idle (!) performance much worse in 2020.2+ versus 2020.1 ...
I've been seeing a very significant performance regression in a DOTS project for a while (several months now, but I thought it was...
Read more >
Spark Streaming - Spark 3.0.0-preview2 Documentation
Spark Streaming programming guide and tutorial for Spark 3.0.0-preview2. ... See the Performance Tuning section for more details.
Read more >
Changelog | XR Interaction Toolkit | 0.10.0-preview.7
[0.10.0-preview.2] - 2020-08-26 ... Fixes minor documentation issues; Fixed passing from hand to hand of objects using direct interactors ...
Read more >
Changelog | Platforms Android | 0.10.0-preview.10
Changelog. All notable changes to this package will be documented in this file. The format is based on Keep a Changelog and this...
Read more >
Performance degradation : r/BrownDust2Official
So here's my question: Is there any fix for this lag & over-time performance degradation? This isn't the first mobile game to do...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found