dbt-labs / dbt-labs/dbt-completion.bash

Issues with speed when calling dbt-core (Typer)

Open
#35 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
143
Forks
29
PR merge metrics
No merged PRs in 30d

Description

Honestly, just have two completions.

`hyperfine --warmup 3 'zsh -c "source _dbt; words=(dbt run --se); CURRENT=3; _dbt"' --shell=zsh`

Before:

```
Benchmark 1: zsh -c "source _dbt; words=(dbt run --se); CURRENT=3; _dbt"
Time (mean ± σ): 6.8 ms ± 0.3 ms [User: 2.3 ms, System: 3.6 ms]
Range (min … max): 6.3 ms … 8.6 ms 266 runs
```

After:

```
Benchmark 1: zsh -c "source _dbt; words=(dbt run --se); CURRENT=3; _dbt"
Time (mean ± σ): 2.348 s ± 0.709 s [User: 2.050 s, System: 0.289 s]
Range (min … max): 1.716 s … 3.490 s 10 runs
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.