Skip to content

Consider implementing memory pooling system #317

@Mec-iS

Description

@Mec-iS

Introduce buffer pooling (reuse temporary arrays across operations) for algorithms where memory allocation happens very frequently (like trees).

impl BaseTreeRegressor {
    pub fn fit_with_pooling(/* params */) -> Self {
        // Use pooling for tree construction
    }
    
    pub fn fit(/* params */) -> Self {
        // Regular allocation for simple cases
        self.fit_with_pooling(/* params */)
    }
}

For an extensive overview: https://gist.github.com/Mec-iS/4a0a068e5d6b6901125812c27f9e3b97

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions