Oh-my-posh3: Too much latency compared to oh-my-posh2

Created on 8 Oct 2020  路  12Comments  路  Source: JanDeDobbeleer/oh-my-posh3

Prerequisites

  • [x] I have read and understand the CONTRIBUTING guide
  • [x] I looked for duplicate issues before submitting this one

Description

There is too much latency compared to oh-my-posh2, especially when
typing the clear command.

Environment

  • Oh my Posh version: 3.11.0
  • Operating System: Windows 10 20H2
  • Shell: PowerShell Core 7.0.3
  • Terminal: Windows Terminal

Steps to Reproduce

  1. Type clear command in the terminal.
  2. You will see some latency until the shell bar pops up.

Expected behavior:
Little to no latency.

Actual behavior:
Some latency.

All 12 comments

What theme?

What theme?

I was using the Star theme.

it seems pretty responsive to me. But this might be causing an issue on Windows?

{
          "type": "command",
          "style": "plain",
          "foreground": "#C49EE9",
          "properties": {
            "shell": "bash",
            "command": "find . -name package.json -depth 1 -exec echo \" <#ffffff>via node</>\" \\;"
          }
        },

Do you have issues with other themes?

The command segment seemed like a good idea but I'm starting to resent it. I'm going to look for a different solution. I haven't noticed latency, but I'm mostly on zsh which might explain that. The only segment that has a noticeable impact is spotify. And as @nwykes states, in theory command is the only one that can have an impact this negative.

For star specifically I will replace the command with the default node segment functionality as that one makes no sense anymore. I think command is neat when you know what you're dealing with, but the out-of-the-box themes shouldn't be using this.

@aykxt can you check to see if the latest version offers a different experience?

@aykxt can you check to see if the latest version offers a different experience?

Seems like it is a little bit faster now. But there is still some delay when I'm in a git repository.

I'll see if we can speed up things a bit in that regard.

@aykxt looking forward to seeing if the latest update makes a difference. If not, can you check if you're on the latest git version?

@aykxt looking forward to seeing if the latest update makes a difference. If not, can you check if you're on the latest git version?

Just tried it, it's much faster now!

@aykxt do we close this one for now? I'm not sure there's much I can do to make it even faster, the layout should also keep it that way even when extending to offer support for revert/bisect.

@aykxt can you check to see if the latest version offers a different experience?

I think we can close it, it's much faster now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MJECloud picture MJECloud  路  6Comments

otaconjh picture otaconjh  路  6Comments

audunn picture audunn  路  6Comments

DotNetSparky picture DotNetSparky  路  4Comments

ozerty picture ozerty  路  7Comments