### 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
ert("ks_Arab"));
		ert("ks_Arab_IN"));
		ert("lrc")); // Northern Luri
		ert("lrc_IQ"));
		ert("lrc_IR"));
		ert("mzn")); // Mazanderani
		ert("mzn_IR"));
		ert("pa_PK")); // Panjabi
		ert("pa_Arab"));
		ert("pa_Arab_PK"));
		ert("ps")); // Pushto
		ert("ps_AF"));
		ert("ps_PK"));
		ert("ur_IN")); // Urdu
		ert("uz_AF")); // Uzbek
		ert("uz_Arab"));
		ert("uz_Arab_AF"));
		pr.digits = U"۰۱۲۳۴۵۶۷۸۹٫";
		prsign = U"٪";
		pr.exp = U"اس";
		num_systems.push_back(pr);
	}
	// Bengali numerals.
	{
		NumSystemData bn;
		bnert("as")); // Assamese
		bnert("as_IN"));
		bnert("bn")); // Bengali
		bnert("bn_BD"));
		bnert("bn_IN"));