How to Install and Uninstall golang-github-michaeltjones-walk-dev Package on Ubuntu 21.04 (Hirsute Hippo)
Last updated: November 26,2024
1. Install "golang-github-michaeltjones-walk-dev" package
This tutorial shows how to install golang-github-michaeltjones-walk-dev on Ubuntu 21.04 (Hirsute Hippo)
$
sudo apt update
Copied
$
sudo apt install
golang-github-michaeltjones-walk-dev
Copied
2. Uninstall "golang-github-michaeltjones-walk-dev" package
In this section, we are going to explain the necessary steps to uninstall golang-github-michaeltjones-walk-dev on Ubuntu 21.04 (Hirsute Hippo):
$
sudo apt remove
golang-github-michaeltjones-walk-dev
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the golang-github-michaeltjones-walk-dev package on Ubuntu 21.04 (Hirsute Hippo)
Package: golang-github-michaeltjones-walk-dev
Architecture: all
Version: 0.0~git20161122.4748e29-2
Priority: optional
Section: universe/devel
Source: golang-github-michaeltjones-walk
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Go Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 41
Filename: pool/universe/g/golang-github-michaeltjones-walk/golang-github-michaeltjones-walk-dev_0.0~git20161122.4748e29-2_all.deb
Size: 10804
MD5sum: aab7995c41c3f604a46bc3c3c9cdc937
SHA1: 300328161df44016a91b037b788ffa7e84607aa2
SHA256: 75ca9b3b504974cbbeb2bf8e38503fa8d41a32f290a053054199a36de82509ac
SHA512: a626b21ae0eb48871f5753c4c328e71c2ec9a8a9a2f6cd211b875f37e20ec6f845838a2ad1b2a71b078e8a574542f472bf63ec54f3eb6d648ead503ef975445c
Homepage: https://github.com/MichaelTJones/walk
Description-en: Fast parallel version of golang filepath.Walk()
Performs traversals in parallel so set GOMAXPROCS appropriately.
Values from 8 to 16 seem to work best on 4-CPU plus 4 SMT CPU.
The result is about 4x-6x the traversal rate of the standard
Walk(). The two are not identical since walking the file system
in a tumult of asynchronous walkFunc calls by a number of goroutines.
So, take note of the following:
• This walk honors all of the walkFunc
error semantics but as multiple user-supplied walkFuncs may simultaneously
encounter a traversal error or generate one to stop traversal, only the
FIRST of these will be returned as the Walk() result.
• Further, since
there may be a few files in flight at the instant of error discovery, a
few more walkFunc calls may happen after the first error-generating call
has signaled its desire to stop. In general this is a non-issue but it
could matter so pay attention when designing your walkFunc. (For example,
if you accumulate results then you need to have your own means to know
to stop accumulating once you signal an error.)
• Because the walkFunc
is called concurrently in multiple goroutines, it needs to be careful
about what it does with external data to avoid collisions. Results may
be printed using fmt, but generally the best plan is to send results
over a channel or accumulate counts using a locked mutex.
.
These issues
are illustrated/handled in the simple traversal programs supplied with
walk. There is also a test file that is just the tests from filepath
in the Go language's standard library. Walk passes these tests when
run in single process mode, and passes most of them in concurrent mode
(GOMAXPROCS > 1). The problem is not a real problem, but one of the
test expecting a specific number of errors to be found based on presumed
sequential traversals.
Description-md5: b4d8cc1bd5a2da67cb8cb971c13ef223
Architecture: all
Version: 0.0~git20161122.4748e29-2
Priority: optional
Section: universe/devel
Source: golang-github-michaeltjones-walk
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Go Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 41
Filename: pool/universe/g/golang-github-michaeltjones-walk/golang-github-michaeltjones-walk-dev_0.0~git20161122.4748e29-2_all.deb
Size: 10804
MD5sum: aab7995c41c3f604a46bc3c3c9cdc937
SHA1: 300328161df44016a91b037b788ffa7e84607aa2
SHA256: 75ca9b3b504974cbbeb2bf8e38503fa8d41a32f290a053054199a36de82509ac
SHA512: a626b21ae0eb48871f5753c4c328e71c2ec9a8a9a2f6cd211b875f37e20ec6f845838a2ad1b2a71b078e8a574542f472bf63ec54f3eb6d648ead503ef975445c
Homepage: https://github.com/MichaelTJones/walk
Description-en: Fast parallel version of golang filepath.Walk()
Performs traversals in parallel so set GOMAXPROCS appropriately.
Values from 8 to 16 seem to work best on 4-CPU plus 4 SMT CPU.
The result is about 4x-6x the traversal rate of the standard
Walk(). The two are not identical since walking the file system
in a tumult of asynchronous walkFunc calls by a number of goroutines.
So, take note of the following:
• This walk honors all of the walkFunc
error semantics but as multiple user-supplied walkFuncs may simultaneously
encounter a traversal error or generate one to stop traversal, only the
FIRST of these will be returned as the Walk() result.
• Further, since
there may be a few files in flight at the instant of error discovery, a
few more walkFunc calls may happen after the first error-generating call
has signaled its desire to stop. In general this is a non-issue but it
could matter so pay attention when designing your walkFunc. (For example,
if you accumulate results then you need to have your own means to know
to stop accumulating once you signal an error.)
• Because the walkFunc
is called concurrently in multiple goroutines, it needs to be careful
about what it does with external data to avoid collisions. Results may
be printed using fmt, but generally the best plan is to send results
over a channel or accumulate counts using a locked mutex.
.
These issues
are illustrated/handled in the simple traversal programs supplied with
walk. There is also a test file that is just the tests from filepath
in the Go language's standard library. Walk passes these tests when
run in single process mode, and passes most of them in concurrent mode
(GOMAXPROCS > 1). The problem is not a real problem, but one of the
test expecting a specific number of errors to be found based on presumed
sequential traversals.
Description-md5: b4d8cc1bd5a2da67cb8cb971c13ef223