TTree::Draw() with vector<bool> memory problem

Hi again,

I’m still trying to understand what is different about the vector, and how to work around it.

I tried duplicating the vector branch into a vector branch. Then if I access the values through the vector branch, memory usage is normal. However, to create this branch, I still have to access the vector branch, meaning that my computer’s memory got filled up with it.
Now, I could do this in a pre-processing step and then process happily my new TTree with a vector branch, but I really would like to find a one step solution to this problem.

Please also let me know if the lack of answers here is related to me not providing a minimal working example (yet). It’s just a bit of a hassle to take a shareable chunk out of a big dataset and I suppose really any vector branch should do fine to see the issue.