Skip to content

Add optional mimalloc allocator support for Release builds #5

Description

@asn5d

This enhancement proposes adding optional support for using mimalloc as the global memory allocator when building cvutil in Release mode.

Motivation

  • Improve allocation performance and reduce fragmentation in long-running workloads.
  • Provide more robust memory diagnostics for production builds.
  • Allow developers to choose between the system allocator and mimalloc through a CMake option.
  • Complements recent memory safety improvements and ASAN Debug configuration.

Proposed implementation

  • Add a CMake option (e.g. USE_MIMALLOC).
  • Link mimalloc and configure it as a global allocator when enabled.
  • Keep feature on by default.
  • Maintain full backward compatibility with existing builds.

Notes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions