Implementation of (un)compact in request trees