Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add concurrency for list #77

Merged
merged 4 commits into from
Nov 3, 2021
Merged

feat: add concurrency for list #77

merged 4 commits into from
Nov 3, 2021

Conversation

elhmn
Copy link
Owner

@elhmn elhmn commented Nov 3, 2021

This pull request improves considerably the speed of the list command

Why ?
On big files ( > 4mb) the list command was taking almost 50 minutes to run, we wanted to bring it down to a reasonable time. And now it runs bellow 2s

How ?
To improve the command speed, the reformat of the file content is now done concurrently.

Steps to verify:

To test that it runs now bellow 2s run time ./ckp f --from-history --all

Screenshots (optional)

BEFORE

Screenshot 2021-11-03 at 12 08 49

AFTER

Screenshot 2021-11-03 at 12 06 26

@elhmn elhmn merged commit 068ea34 into master Nov 3, 2021
list += getField(" Code", s.Code.Content)
}
list += "\n"
go sprintScript(&wg, output, i, s, isCode, isSolution)
Copy link

@Sanix-Darker Sanix-Darker Sep 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting, didn't knew we can do such improvements With Concurency 👌🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants