carloscuesta / carloscuesta/gitmoji-cli

Performance improvements

Open
#1,108 1 comment 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
JavaScript
Stars
4.8k
Forks
212
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

Hey! 👋🏼

Our cli can be improved when running and executing commands. In some scenarios and depending on the operating system some commands can take up to 1s to give some output.

See: https://github.com/carloscuesta/gitmoji-cli/issues/1096

### Reproduction

This can be reproduced using the [time](https://man7.org/linux/man-pages/man1/time.1.html) command:

```
time gitmoji --help
time gitmoji --list
time gitmoji --search bug
```

As a result you'll get an output with the seconds each operation take to complete (for the given commands you'll get something like:

```
gitmoji --help 0.41s user 0.08s system 115% cpu 0.425 total
gitmoji --list 0.46s user 0.10s system 62% cpu 0.900 total
gitmoji --search bug 0.45s user 0.08s system 119% cpu 0.448 total
```

### Additional context

We should explore the cli to understand if we can apply any improvements that impact the overall time commands take to complete.

### System Info

```Shell
N/A
```

### Validations

- [X] Follow our [Code of Conduct](https://github.com/carloscuesta/gitmoji-cli/blob/master/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guide](https://github.com/carloscuesta/gitmoji-cli/blob/master/.github/CONTRIBUTING.md).
- [X] Check that there isn't already an issue that reports the same bug to avoid creating duplicates.
- [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [X] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.

Contributor guide

Open the contributing guide

Research direction

Start by running the reported `time gitmoji --help`, `time gitmoji --list`, and `time gitmoji --search bug` commands to establish current timings. Explore the CLI entry points to locate the source of the delay, then verify that the affected commands complete faster without changing their output or behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.