https://github.com/philhofer/fwd
Score: 30.25685007221712
Last synced: about 22 hours ago
JSON representation
Repository metadata:
Buffered Reader/Writer
- Host: GitHub
- URL: https://github.com/philhofer/fwd
- Owner: philhofer
- License: mit
- Created: 2014-11-09T16:58:04.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2025-06-25T15:35:04.000Z (12 months ago)
- Last Synced: 2026-05-31T14:15:16.824Z (13 days ago)
- Language: Go
- Homepage:
- Size: 35.2 KB
- Stars: 80
- Watchers: 2
- Forks: 21
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Owner metadata:
- Name: Phil
- Login: philhofer
- Email:
- Kind: user
- Description: CTO @SnellerInc
- Website:
- Location:
- Twitter:
- Company: @SnellerInc
- Icon url: https://avatars.githubusercontent.com/u/2940902?u=112becef603523bfadf62e8805860cd8f7979e52&v=4
- Repositories: 41
- Last Synced at: 2023-08-11T18:56:48.335Z
- Profile URL: https://github.com/philhofer
GitHub Events
Total
- Issue comment event: 4
- Issues event: 6
- Watch event: 2
- Total: 12
Last Year
- Issue comment event: 3
- Issues event: 4
- Watch event: 1
- Total: 8
Committers metadata
Last synced: 3 days ago
Total Commits: 41
Total Committers: 13
Avg Commits per committer: 3.154
Development Distribution Score (DDS): 0.415
Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| philhofer | p****r@u****u | 24 |
| Sebastiaan van Stijn | g****b@g****l | 4 |
| Shawn Smith | s****h@g****m | 3 |
| shawnps | s****n@s****m | 1 |
| Mikkel Kamstrup Erlandsen | m****l@a****o | 1 |
| Michal Hruby | m****r@g****m | 1 |
| Klaus Post | k****t@g****m | 1 |
| Jonathan A. Sternberg | j****g@g****m | 1 |
| Janusz Marcinkiewicz | v****s@g****m | 1 |
| Edward Betts | e****d@4****m | 1 |
| Dan Kegel | d****l@f****m | 1 |
| Cuong Manh Le | c****n@g****m | 1 |
| Brad Peabody | b****d@p****o | 1 |
Issue and Pull Request metadata
Last synced: 13 days ago
Total issues: 16
Total pull requests: 21
Average time to close issues: about 9 hours
Average time to close pull requests: about 5 hours
Total issue authors: 14
Total pull request authors: 12
Average comments per issue: 1.06
Average comments per pull request: 0.52
Merged pull request: 18
Bot issues: 0
Bot pull requests: 0
Past year issues: 2
Past year pull requests: 1
Past year average time to close issues: about 7 hours
Past year average time to close pull requests: N/A
Past year issue authors: 2
Past year pull request authors: 1
Past year average comments per issue: 0.5
Past year average comments per pull request: 0.0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- thaJeztah (2)
- ebfe (2)
- kamstrup (1)
- jsternberg (1)
- cheickapple (1)
- scunningham (1)
- imumesh18 (1)
- gibmat (1)
- tv42 (1)
- client9 (1)
- dkegel-fastly (1)
- zond (1)
- klauspost (1)
- ckohnert (1)
Top Pull Request Authors
- shawnps (4)
- philhofer (4)
- mhr3 (2)
- dkegel-fastly (2)
- klauspost (2)
- ckohnert (1)
- bradleypeabody (1)
- kamstrup (1)
- thaJeztah (1)
- VirrageS (1)
- cuonglm (1)
- jsternberg (1)
Top Issue Labels
Top Pull Request Labels
Package metadata
- Total packages: 12
- Total downloads: unknown
- Total docker downloads: 12,503,169,798
- Total dependent packages: 3,426 (may contain duplicates)
- Total dependent repositories: 12,369 (may contain duplicates)
- Total versions: 16
proxy.golang.org: github.com/philhofer/fwd
Package fwd provides a buffered reader and writer. Each has methods that help improve the encoding/decoding performance of some binary protocols. The Writer and Reader type provide similar functionality to their counterparts in bufio, plus a few extra utility methods that simplify read-ahead and write-ahead. I wrote this package to improve serialization performance for http://github.com/tinylib/msgp, where it provided about a 2x speedup over `bufio` for certain workloads. However, care must be taken to understand the semantics of the extra methods provided by this package, as they allow the user to access and manipulate the buffer memory directly. The extra methods for Reader are Reader.Peek, Reader.Skip and Reader.Next. (*fwd.Reader).Peek, unlike (*bufio.Reader).Peek, will re-allocate the read buffer in order to accommodate arbitrarily large read-ahead. (*fwd.Reader).Skip skips the next 'n' bytes in the stream, and uses the io.Seeker interface if the underlying stream implements it. (*fwd.Reader).Next returns a slice pointing to the next 'n' bytes in the read buffer (like Reader.Peek), but also increments the read position. This allows users to process streams in arbitrary block sizes without having to manage appropriately-sized slices. Additionally, obviating the need to copy the data from the buffer to another location in memory can improve performance dramatically in CPU-bound applications. Writer only has one extra method, which is (*fwd.Writer).Next, which returns a slice pointing to the next 'n' bytes of the writer, and increments the write position by the length of the returned slice. This allows users to write directly to the end of the buffer.
- Homepage: https://github.com/philhofer/fwd
- Documentation: https://pkg.go.dev/github.com/philhofer/fwd#section-documentation
- Licenses: MIT
- Latest release: v1.2.0 (published over 1 year ago)
- Last Synced: 2026-06-10T19:01:22.391Z (3 days ago)
- Versions: 5
- Dependent Packages: 3,426
- Dependent Repositories: 12,369
- Docker Downloads: 12,503,169,798
-
Rankings:
- Docker downloads count: 0.032%
- Dependent packages count: 0.062%
- Dependent repos count: 0.066%
- Average: 2.127%
- Forks count: 5.094%
- Stargazers count: 5.381%
debian-11: golang-github-philhofer-fwd
- Homepage: https://github.com/philhofer/fwd
- Documentation: https://packages.debian.org/bullseye/golang-github-philhofer-fwd
- Licenses:
- Latest release: 1.1.1-1 (published 4 months ago)
- Last Synced: 2026-03-13T11:32:16.738Z (3 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-13: golang-github-philhofer-fwd
- Homepage: https://github.com/philhofer/fwd
- Documentation: https://packages.debian.org/trixie/golang-github-philhofer-fwd
- Licenses:
- Latest release: 1.1.2+git20240916.20a13a1-1 (published 4 months ago)
- Last Synced: 2026-03-13T19:17:50.824Z (3 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-20.04: golang-github-philhofer-fwd
- Homepage: https://github.com/philhofer/fwd
- Licenses:
- Latest release: 0.0~git20151005.0.8fd9a4b-1 (published 4 months ago)
- Last Synced: 2026-03-08T02:59:39.904Z (3 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
guix: go-github-com-philhofer-fwd
Buffered Reader/Writer for Goalng
- Homepage: https://github.com/philhofer/fwd
- Documentation: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/golang-xyz.scm#n22080
- Licenses: expat
- Latest release: 1.1.2 (published 3 months ago)
- Last Synced: 2026-04-27T18:13:30.870Z (about 2 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-12: golang-github-philhofer-fwd
- Homepage: https://github.com/philhofer/fwd
- Documentation: https://packages.debian.org/bookworm/golang-github-philhofer-fwd
- Licenses:
- Latest release: 1.1.1-1 (published 4 months ago)
- Last Synced: 2026-03-13T00:11:31.666Z (3 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-10: golang-github-philhofer-fwd
- Homepage: https://github.com/philhofer/fwd
- Documentation: https://packages.debian.org/buster/golang-github-philhofer-fwd
- Licenses:
- Latest release: 0.0~git20151005.0.8fd9a4b-1 (published 4 months ago)
- Last Synced: 2026-03-13T04:08:58.682Z (3 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%