ctagread and autocomplete optimizations