Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pavdmyt/fastfact
Playground for various factorial function implementations
https://github.com/pavdmyt/fastfact
concurrent-programming factorial golang math
Last synced: 6 days ago
JSON representation
Playground for various factorial function implementations
- Host: GitHub
- URL: https://github.com/pavdmyt/fastfact
- Owner: pavdmyt
- License: mit
- Created: 2018-03-17T16:45:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-25T15:39:17.000Z (over 6 years ago)
- Last Synced: 2024-06-20T15:57:14.943Z (5 months ago)
- Topics: concurrent-programming, factorial, golang, math
- Language: Go
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fastfact [![godoc][godoc-image]][godoc-url]
Few different implementations of the functions to calculate a [factorial](https://en.wikipedia.org/wiki/Factorial) of the given number. Utilizes [math/big](https://golang.org/pkg/math/big/) to calculate factorials of *really* big numbers.
There are also functions which are able to split calculations between [goroutines](https://tour.golang.org/concurrency/1) (workers) and do work concurrently (in parallel at multi-core machines) thus speeding up calculations.
Performance results can be viewed in [benchmarking.md](https://github.com/pavdmyt/fastfact/blob/master/benchmarking.md).
## Installation
```bash
go get -u github.com/pavdmyt/fastfact
```## API
See [godoc reference](https://godoc.org/github.com/pavdmyt/fastfact) for detailed API documentation.
## License
MIT - Pavlo Dmytrenko; https://twitter.com/pavdmyt
[godoc-image]: https://godoc.org/github.com/pavdmyt/fastfact?status.svg
[godoc-url]: https://godoc.org/github.com/pavdmyt/fastfact