Project-MONAI / Project-MONAI/MONAI

enhance memory management `csrc/filtering/permutohedral`?

Open
#3,705 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature request
Dominant language
Python
Stars
8.7k
Forks
1.6k
Avg merge
5d 1h
Merged PRs (30d)
20

Description

it would be nicer to replace the c arrays by c++ objects (std::vector or std::array when possible). The current memory management seems brittle.

Originally posted by @tvercaut in https://github.com/Project-MONAI/MONAI/issues/3698#issuecomment-1020327709

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading csrc/filtering/permutohedral and catalog the C arrays and their ownership. The work is done when applicable arrays use std::vector or std::array without changing the filtering behavior, with relevant existing tests still passing.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
performance
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.