# 🗃 `para`

## What?
A decoder and utility for the Flipnote Studios `.ppm` animation format.
## Why this implementation over [the original](https://github.com/Flipnote-Collective/ppm-parser)?
This implementation is
- [SIGNIFICANTLY faster](#speed),
- implemented in safe Rust (a language with strict type-checking!),
- and being actively updated.
### Speed
In a 219 frame `.ppm` benchmark, running the command
`$ para ./ppms/samplememo_02.ppm gif samplememo_02.gif` on a twelve-core,
twenty-four-thread Ryzen 9 processor, para took an average of **368.35 milliseconds**,
while ppm-parser took an average of **50.4171397 seconds**.
Running the command `$ para ./ppms/samplememo_02.ppm 0 samplememo_02.png` on a twelve-core,
twenty-four-thread Ryzen 9 processor, para took an average of **1.875619 milliseconds**,
while ppm-parser took an average of **358.2232 milliseconds**.
Rust versus Python isn't very fair, however, this benchmark shows the speed improvements
that para brings to the table.
## Things To Come
- Support for other formats (namely `.kwz`)
- Optimizations here and there
- Friendlier CLI
- Possible GUI
## Getting up and Running
### Installation
#### Install from [crates.io](https://crates.io/crates/para-cli)
```shell
cargo +nightly install para-cli --force
```
#### Download from releases
Prebuilt binaries for x86_64-based Linux systems are available in the
[releases](https://github.com/Fuwn/para/releases/latest). If you are using
a different operating system or architecture such as macOS or Windows; you'll have
to build and install Para yourself!
#### Install from self-compile
```shell
cargo +nightly install --git https://github.com/Fuwn/para --branch main
```
If you are building and installing yourself, you must have
[Rust](https://www.rust-lang.org/) installed!
### Usage
```shell
usage: para