Skip to content

Reusable stacks #73

@aviramha

Description

@aviramha

Hey!
First of all - awesome library, really useful for our project!
Second - we have a use case where we need to use a different stack then the one we execute it, but we don't want to create a new stack each time, so I thought maybe we would allocate it once then re-use it. I was wondering if you'd accept a PR adding this functionality.

Activity

nagisa

nagisa commented on Sep 6, 2022

@nagisa
Member

I would imagine using the psm library may suit your needs better in case you need precise manual control of the details, but I’m definitely happy to see improvements made to stacker as well.

In particular, some sort of a mechanism that caches and reuses previously allocated stacks would be very interesting and desirable I believe.

aviramha

aviramha commented on Sep 6, 2022

@aviramha
Author

@nagisa You have amazing timing - I just submitted a PR. I think the overall structure makes more sense (building blocks wise) and it solves my issue (I can create a stack and "run" on it)
The possibility of caching is easier to implement using it but currently out of scope in regards to our current desires/needs..

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

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

        Participants

        @nagisa@aviramha

        Issue actions

          Reusable stacks · Issue #73 · rust-lang/stacker