### Godot version

8449592d92eaeef990f5502b419d491ee3eeb7a6

### System information

Windows 11

### Issue description

Zooming in the script editor on an empty script freezes the entire editor for a few seconds, but if the file is large then it freezes for 4-5 seconds (which is unacceptable). Looks like a recent regression.

### Steps to reproduce

Just zoom in/out on the large script file.

### Minimal reproduction project

N/A
return u_gep_chr, UCHAR_JOINING_GROUP) == U_JG_REH;
}
_FORCE_INLINE_ bool is_seen_sad(char32_t p_chr) {
	return (u_gep_chr, UCHAR_JOINING_GROUP) == U_JG_SAD) || (u_gep_chr, UCHAR_JOINING_GROUP) == U_JG_SEEN);
}
_FORCE_INLINE_ bool is_tah(char32_t p_chr) {
	return u_gep_chr, UCHAR_JOINING_GROUP) == U_JG_TAH;
}
_FORCE_INLINE_ bool is_teh_marbuta(char32_t p_chr) {
	return u_gep_chr, UCHAR_JOINING_GROUP) == U_JG_TEH_MARBUTA;
}
_FORCE_INLINE_ bool is_yeh(char32_t p_chr) {
	int32_t prop = u_gep_chr, UCHAR_JOINING_GROUP);
	return (prop == U_JG_YEH) || (prop == U_JG_FARSI_YEH) || (prop == U_JG_YEH_BARREE) || (prop == U_JG_BURUSHASKI_YEH_BARREE) || (prop == U_JG_YEH_WITH_TAIL);
}
_FORCE_INLINE_ bool is_waw(char32_t p_chr) {
	return u_gep_chr, UCHAR_JOINING_GROUP) == U_JG_WAW;
}
_FORCE_INLINE_ bool is_transparent(char32_t p_chr) {
	return u_gep_chr, UCHAR_JOINING_TYPE) == U_JT_TRANSPARENT;
}
_FORCE_INLINE_ bool is_ligature(char32_t p_chr, char32_t p_nchr) {
	return (is_lam(p_chr) && is_alef(p_nchr));
}
_FORCE_INLINE_ bool is_connected_to_prev(char32_t p_chr, char32_t p_pchr) {
	int32_t prop = u_gep_pchr, UCHAR_JOINING_TYPE);
	return (prop != U_JT_RIGHT_JOINING) && (prop != U_JT_NON_JOINING) ? !is_ligature(p_pchr, p_chr) : false;
}
bool TextServerAdvanced::icu_data_loaded = false;
bool TextServerAdvanced::_has_feature(Feature p_feature) const {