Skip to content

sagemath/memory_allocator

Repository files navigation

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,
  • allocarray,
  • 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.

Changelog

0.1.4

  • Modernize Python metadata, require Python >= 3.8. #9 by @mkoeppe
  • Add missing noexcept clauses for Cython 3 #8 by @tornaria

0.1.3

  • Python 3.11 compatible.

0.1.2

  • Provide wheels build by github actions.

0.1.1

  • Fixed doctests on 32bit systems.

About

Cython extension class to allocate memory. Source repository for https://pypi.org/project/memory-allocator/

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Contributors 48

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy