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 hashes)

Uploaded Source

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