mem usage behavior when switching libraries appears to be similar for
both backends.