### 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
} 
			case HB_OT_NAME_ID_DESIGNER_URL: {
				name = "designer_url";
			} 
			case HB_OT_NAME_ID_LICENSE: {
				name = "license";
			} 
			case HB_OT_NAME_ID_LICENSE_URL: {
				name = "license_url";
			} 
			case HB_OT_NAME_ID_TYPOGRAPHIC_FAMILY: {
				name = "typographic_family_name";
			} 
			case HB_OT_NAME_ID_TYPOGRAPHIC_SUBFAMILY: {
				name = "typographic_subfamily_name";
			} 
			case HB_OT_NAME_ID_MAC_FULL_NAME: {
				name = "full_name_macos";
			} 
			case HB_OT_NAME_ID_SAMPLE_TEXT: {
				name = "sample_text";
			} 
			case HB_OT_NAME_ID_CID_FINDFONT_NAME: {
				name = "cid_findfont_name";
			} 
			case HB_OT_NAME_ID_WWS_FAMILY: {
				name = "weight_width_slope_family_name";
			} 
			case HB_OT_NAME_ID_WWS_SUBFAMILY: {
				name = "weight_width_slope_subfamily_name";