2
1
Fork
You've already forked scratchpkg
3

scratch: Reduces the time to list all the installed packages. Also allows to filter them. #4

Closed
ahdiaz wants to merge 1 commit from ahdiaz/scratchpkg:list-installed into main
pull from: ahdiaz/scratchpkg:list-installed
merge into: venomlinux:main
venomlinux:main
First-time contributor
Copy link

Hey guys, skipping allinstalled() and using just one sed can improve the list of installed packages to milliseconds.
Let me know if this sounds good to you.

$ scratch installed | wc -l
394
# main branch
$ scratch installed
...
________________________________________________________
Executed in 5.90 secs fish external
 usr time 3.91 secs 0.00 millis 3.91 secs
 sys time 1.94 secs 3.44 millis 1.94 secs
# proposed change
$ scratch installed
...
________________________________________________________
Executed in 629.43 millis fish external
 usr time 175.45 millis 1.41 millis 174.05 millis
 sys time 469.84 millis 1.13 millis 468.71 millis
Hey guys, skipping allinstalled() and using just one sed can improve the list of installed packages to milliseconds. Let me know if this sounds good to you. ``` $ scratch installed | wc -l 394 # main branch $ scratch installed ... ________________________________________________________ Executed in 5.90 secs fish external usr time 3.91 secs 0.00 millis 3.91 secs sys time 1.94 secs 3.44 millis 1.94 secs # proposed change $ scratch installed ... ________________________________________________________ Executed in 629.43 millis fish external usr time 175.45 millis 1.41 millis 174.05 millis sys time 469.84 millis 1.13 millis 468.71 millis ```
Contributor
Copy link

Hi @ahdiaz, sorry, I didn't see your message. Let me know in the Venom group on Matrix or Telegram next time. Scratchpkg has been updated to POSIX as much as possible without sacrificing performance or functionality. Please update your code and I'll publish it. Thanks!

Hi @ahdiaz, sorry, I didn't see your message. Let me know in the Venom group on Matrix or Telegram next time. Scratchpkg has been updated to POSIX as much as possible without sacrificing performance or functionality. Please update your code and I'll publish it. Thanks!
lumaro closed this pull request 2025年12月09日 12:36:48 +01:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
venomlinux/scratchpkg!4
Reference in a new issue
venomlinux/scratchpkg
No description provided.
Delete branch "ahdiaz/scratchpkg:list-installed"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?