یادداشتهای انتشار به انگلیسی نوشته شدهاند.
Long nested loops run to the end, and reading long text is fast
Two fixes found while building the next JavaScript slice. A nested loop that did a lot of work could stop with an error saying the script ran too long after only a few milliseconds, and reading long text one character at a time slowed down the longer the text was. Both are fixed on every tier.
چه چیزی تغییر کرد
2 تغییر- JavaScript و JITLong nested loops run to the end. Compiled loops pause about every millisecond to check whether you navigated away; an inner loop that was mid-way through at that moment was treated as a script that had run too long, so ordinary code such as 50 rows of 100,000 items stopped with an error. The inner loop now checks in and carries on, and only a script that really runs for 30 seconds is stopped.
- نمایش صفحهReading long text character by character is fast. charAt, charCodeAt, codePointAt and length used to copy and rescan the whole text on every call, so a script walking a long text took time proportional to the square of its length. Long strings now keep a small index of their characters: walking 60,000 characters of accented text went from 3.7 seconds to 16 milliseconds, and plain text from 383 to 13 milliseconds.