Skip to main content

Fast LCS algorithms implemented in Rust

Project description

pylcs-rs

This is a Rust port of the pylcs project.

benchmark

on M4 MacOS

$ docker build -t lcsbench -f benchmark.dockerfile.aarch64 .
$ docker run -it --rm lcsbench
Input Sizes                    | pylcs_rs            | pylcs
------------------------------------------------------------------------
(3, 7)                         | 0.000001 ±0.000001 | 0.000001 ±0.000002
(5, 3)                         | 0.000001 ±0.000001 | 0.000001 ±0.000000
(1000, 1100)                   | 0.003899 ±0.000217 | 0.002706 ±0.000069
(1500, 1500)                   | 0.008471 ±0.000209 | 0.005510 ±0.000138
(1100, 1100)                   | 0.003577 ±0.000050 | 0.002596 ±0.000030
(520, 520)                     | 0.000800 ±0.000047 | 0.000569 ±0.000013

development

Build and Test Rust Modules

cargo test

Install dev dependencies

uv sync

Build for editable package

uv run maturin develop --uv

Test Python Module

uv run pytest

build for release

uv run maturin build --release

The Artifact should be like: ./target/wheels/pylcs_rs-0.1.0-cp312-cp312-*.whl

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pylcs_rs-0.1.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (237.9 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ x86-64

pylcs_rs-0.1.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (235.0 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

pylcs_rs-0.1.0-cp311-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (251.6 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

pylcs_rs-0.1.0-cp311-abi3-macosx_11_0_x86_64.whl (215.6 kB view details)

Uploaded CPython 3.11+macOS 11.0+ x86-64

pylcs_rs-0.1.0-cp311-abi3-macosx_11_0_arm64.whl (209.9 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

Details for the file pylcs_rs-0.1.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pylcs_rs-0.1.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bf08df4cdf2c4db8f38726e94452191bd43347128ffd64ed340b7f4bf80f08ce
MD5 921306918fd16c6c0196654d9106352d
BLAKE2b-256 1e3ca35575748c10edb25f79e552598d727a67321644b586e174bdf167e8cc83

See more details on using hashes here.

File details

Details for the file pylcs_rs-0.1.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pylcs_rs-0.1.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 66bccc508b6dfc67b6b124ccf123b7188c5769648baaa9c686803e5b343e4099
MD5 eaa608e45ff66740266f20150580f2a9
BLAKE2b-256 ff33075407e58ec03cf4a83b267eb18bfee6817b266b58853e7064925db517b0

See more details on using hashes here.

File details

Details for the file pylcs_rs-0.1.0-cp311-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pylcs_rs-0.1.0-cp311-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 e0111826ff51ba52bc86326d9260cde6cfec782851cc78cd8d32dc9c55e9a912
MD5 2d013a03effaffc7631c1516fa4f81f5
BLAKE2b-256 d5a01d57ceedb16b22320043e826fc8d2032d0e088ab95f23cd259e5c86d25b8

See more details on using hashes here.

File details

Details for the file pylcs_rs-0.1.0-cp311-abi3-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for pylcs_rs-0.1.0-cp311-abi3-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 f91cf9c80eb5fa85a2b8b3103382e9b55d5bb7c4616840194f081ba626f6cda5
MD5 5978f45a29690c220eebe3379ae5fb80
BLAKE2b-256 a613fe60a91feb7c900a43a62f2d870f5ddf32092d7e4b4951c4267c6e2b7a71

See more details on using hashes here.

File details

Details for the file pylcs_rs-0.1.0-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pylcs_rs-0.1.0-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1154d4c70b1cfe1fe633a3731603ff7a3a74104dca72855cea988a5ce26fbb1a
MD5 bd96d59fe1d705136fcba0bd6da5c1f4
BLAKE2b-256 4bca448d9d30b6579623af2044aba820cd3996c9ff37683ff3da2749e1ce0ecc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page