### 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_ALEF;
}
_FORCE_INLINE_ bool is_beh(char32_t p_chr) {
	int32_t prop = u_gep_chr, UCHAR_JOINING_GROUP);
	return (prop == U_JG_BEH) || (prop == U_JG_NOON) || (prop == U_JG_AFRICAN_NOON) || (prop == U_JG_NYA) || (prop == U_JG_YEH) || (prop == U_JG_FARSI_YEH);
}
_FORCE_INLINE_ bool is_dal(char32_t p_chr) {
	return u_gep_chr, UCHAR_JOINING_GROUP) == U_JG_DAL;
}
_FORCE_INLINE_ bool is_feh(char32_t p_chr) {
	return (u_gep_chr, UCHAR_JOINING_GROUP) == U_JG_FEH) || (u_gep_chr, UCHAR_JOINING_GROUP) == U_JG_AFRICAN_FEH);
}
_FORCE_INLINE_ bool is_gaf(char32_t p_chr) {
	return u_gep_chr, UCHAR_JOINING_GROUP) == U_JG_GAF;
}
_FORCE_INLINE_ bool is_heh(char32_t p_chr) {
	return u_gep_chr, UCHAR_JOINING_GROUP) == U_JG_HEH;
}
_FORCE_INLINE_ bool is_kaf(char32_t p_chr) {
	return u_gep_chr, UCHAR_JOINING_GROUP) == U_JG_KAF;
}
_FORCE_INLINE_ bool is_lam(char32_t p_chr) {
	return u_gep_chr, UCHAR_JOINING_GROUP) == U_JG_LAM;
}
_FORCE_INLINE_ bool is_qaf(char32_t p_chr) {
	return (u_gep_chr, UCHAR_JOINING_GROUP) == U_JG_QAF) || (u_gep_chr, UCHAR_JOINING_GROUP) == U_JG_AFRICAN_QAF);
}
_FORCE_INLINE_ bool is_reh(char32_t p_chr) {