use a hashset when building name_index in memory