Skip to main content

No project description provided

Project description

Py Merge

Merge sorted list faster than using list.sort or heapq.merge.

import mergefast

# create some sorted lists
a = list(range(-100, 1700))
b = list(range(1400, 1800))

# merge them
merged = mergefast.merge(a, b)

Also specialized variants for even faster merging of homogenus lists:

# Fast merge ints
mergefast.merge_int(a,b)

# Fast merge latin strings
mergefast.merge_latin(c,d)

# Fast merge floats
mergefast.merge_float(e,f)

See article

Building

To build the extension run earthly +build. To Test run earthly +test and to geneartor a performance graph run earthly +perf

Project details


Download files

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

Source Distribution

mergefast-1.1.3.tar.gz (27.2 kB view details)

Uploaded Source

File details

Details for the file mergefast-1.1.3.tar.gz.

File metadata

  • Download URL: mergefast-1.1.3.tar.gz
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0

File hashes

Hashes for mergefast-1.1.3.tar.gz
Algorithm Hash digest
SHA256 6a0445f2b24dd8c1b64d2dca9af9ee4cd8f6faac12b1552a4a2f159a69695a63
MD5 03b7f868d5e927225594ea8fa80448c2
BLAKE2b-256 6997b87455eeed0814048af19d5508cbad785b992489958a184d04bbfb70fa36

See more details on using hashes here.

Supported by

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