Skip to main content

An extension class to allocate memory easily with cython

Project description

MemoryAllocator

An extension class to allocate memory easily with cython.

This extension class started as part of the Sage software.

It provides a single extension class MemoryAllocator with cdef methods

  • malloc,
  • calloc,
  • alloarray,
  • realloc,
  • reallocarray,
  • aligned_malloc,
  • aligned_calloc,
  • aligned_allocarray.

Memory is freed when the instance of MemoryAllocator is deallocated. On failure to allocate the memory, a proper error is raised.

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

memory_allocator-0.1.0.tar.gz (92.7 kB view details)

Uploaded Source

File details

Details for the file memory_allocator-0.1.0.tar.gz.

File metadata

  • Download URL: memory_allocator-0.1.0.tar.gz
  • Upload date:
  • Size: 92.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.2.0 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.3

File hashes

Hashes for memory_allocator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 514711ef57b778040842999633e01543156d807beb363688947a39a54454967d
MD5 1ce1fb6dc5972017a26ee82c4371b180
BLAKE2b-256 2638ca4e812a90dd396808fd6bf5c234ae813635f7c08d6297efbfae57333450

See more details on using hashes here.

Supported by

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