### 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
}
		icu_data_loaded = true;
	}
#endif
	return true;
}
String TextServerAdvanced::_get_support_data_filename() const {
	return _MKSTR(ICU_DATA_NAME);
}
String TextServerAdvanced::_get_support_data_info() const {
	return String("ICU break iteration data (") + _MKSTR(ICU_DATA_NAME) + String(").");
}
bool TextServerAdvanced::_save_support_data(const String &p_filename) const {
	_THREAD_SAFE_METHOD_
#ifdef ICU_STATIC_DATA
	
	Ref<FileAccess> f = FileAccess::open(p_filename, FileAccess::WRITE);
	if (f.is_null()) {
		return false;
	}
	PackedByteArray icu_data;
	icu_data.resize(U_ICUDATA_SIZE);
	memcpy(icu_data.ptrw(), U_ICUDATA_ENTRY_POINT, U_ICUDATA_SIZE);
	f->store_buffer(icu_data);
	return true;
#else
	return false;
#endif
}
bool TextServerAdvanced::_is_locale_right_to_left(const String &p_locale) const {