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.1-cp311-abi3-win_amd64.whl (111.2 kB view details)

Uploaded CPython 3.11+Windows x86-64

pylcs_rs-0.1.1-cp311-abi3-win32.whl (105.5 kB view details)

Uploaded CPython 3.11+Windows x86

pylcs_rs-0.1.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (237.8 kB view details)

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

pylcs_rs-0.1.1-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (234.8 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

pylcs_rs-0.1.1-cp311-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (251.5 kB view details)

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

pylcs_rs-0.1.1-cp311-abi3-macosx_11_0_x86_64.whl (215.5 kB view details)

Uploaded CPython 3.11+macOS 11.0+ x86-64

pylcs_rs-0.1.1-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.1-cp311-abi3-win_amd64.whl.

File metadata

  • Download URL: pylcs_rs-0.1.1-cp311-abi3-win_amd64.whl
  • Upload date:
  • Size: 111.2 kB
  • Tags: CPython 3.11+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for pylcs_rs-0.1.1-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2ea5854fbce3957b7f60b578ae99e597e3f80909feb4c6261b31a022bff3ed02
MD5 1b1557f9076841a163aa13cbe1c23cf1
BLAKE2b-256 233ccb763ba5810b613113d686dc68856952f933d78a858650c77c3b51df099d

See more details on using hashes here.

File details

Details for the file pylcs_rs-0.1.1-cp311-abi3-win32.whl.

File metadata

  • Download URL: pylcs_rs-0.1.1-cp311-abi3-win32.whl
  • Upload date:
  • Size: 105.5 kB
  • Tags: CPython 3.11+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for pylcs_rs-0.1.1-cp311-abi3-win32.whl
Algorithm Hash digest
SHA256 11ea970f663912c51a206f075f5d6ea0a5ccb3c0f17f8044e1616dca63061a37
MD5 d422cdbe6824bfd286c4911bca11b642
BLAKE2b-256 866e4d6cbc0c714a920722279c4de015fe012a88ecf83a0cc063ce3812ffc3e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylcs_rs-0.1.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7647b50e9bb84b95f3efa1ef61aa80d24ebc81c284268d5bb69641393d676d50
MD5 8eb23e9abc035c8b6393f197ee801ced
BLAKE2b-256 571cdb197764805970edb3b7727d23fb2273b1ecc3ef52e3b94d6ab90bf45fa7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylcs_rs-0.1.1-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d9b69041d833593e8443a03ada655b012aee3c8c1c01e7a051d9b5839da51325
MD5 0abe14e6f37c183e776c5ce2eecc6822
BLAKE2b-256 a2024a94d539c50b1d9a7df33cace34d7caabe24956b069d67f17bcb51cc390c

See more details on using hashes here.

File details

Details for the file pylcs_rs-0.1.1-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.1-cp311-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 e7a2c818b4b7b90ec9ffd198d327250f53bf217b7f6374939e89e38412193d0a
MD5 db50a3ef5e26a157f3227ff0152454f7
BLAKE2b-256 4b541caa3acb086b234cce9274c1142a7d2706c3b5d1fb68f32faeeeda7d09f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylcs_rs-0.1.1-cp311-abi3-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 a5103b87c34a19abec7a80842c407f1068133a5d19fe414f4d88b6edf734cffa
MD5 e8fb5ebbe95dc9b18950b8e4bbcf2528
BLAKE2b-256 3f1a297a40773fdaeb1f77cfeafacb7ab1178912228a2af21683d5681abb990f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylcs_rs-0.1.1-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f0df193768f3a0d8e3ac70f6b4af0941488c6daf1e3351fffb6ad53f472c68ea
MD5 78b9aea7ac1c941e8ad2737b375b4f36
BLAKE2b-256 4cf203c22d060933a73b04dd013062d7a398255e0898f85e8c936a7b5d9f9cac

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