perf: use a bool array for precedence completion