リリースノートは英語で書かれています。
A faster interpreter runs the page's code
A speed release for the engine. A new register interpreter now runs the page's functions by default and hands long loops to compiled code while they run, and layout stops asking for the same style values again and again. On eleven real pages, script, style and layout time fell by 6% overall against 0.1.418, and no page got slower.
Pages finish their work sooner
Four of eleven recorded real pages got measurably faster and the other seven held level, measured on the same recorded network traffic for both versions.
A register interpreter, on by default
Most of a page's functions are called only a few times, too few to be worth compiling. They now run in an interpreter that keeps values in registers instead of looking each name up, and a function with a long loop moves into compiled code in the middle of the loop once it has done real work.
Layout asks for each style value once
Layout used to read the same few style properties of the same element about 19 times, and most of those reads found nothing. Each element now keeps a 16-byte record of which of those properties it sets, so an unset one costs one bit test. Every recorded page renders pixel for pixel the same.
変更点
12 件の変更- JavaScript と JITSpeed: a register interpreter now runs the page's functions by default. A function waits for compiled code until it has done real work (5000 calls and loop steps), and is prepared for the interpreter at its 8th call. Switches: FLOATI_LAMINAR=0, FLOATI_LAMINAR_WORK, FLOATI_LAMINAR_EMIT_AT.
- JavaScript と JITSpeed: a loop running in the interpreter moves into compiled code at its loop head once the function has done its work, so a long loop in a function called once no longer stays interpreted (119 -> 3.6 ms on three such loops). Switch: FLOATI_NO_LAMINAR_OSR.
- JavaScript と JITSpeed: the interpreter runs map, filter and forEach callbacks in its own frames, and a loop's increment, compare and jump run as one step.
- レンダリングSpeed: a function is prepared for the interpreter only when it is called, not when its script loads, including the engine's own scripts and functions passed as arguments; one-shot wrappers skip it. Switches: FLOATI_NO_LAMINAR_DEFER, FLOATI_NO_LAMINAR_DEFER_ENGINE, FLOATI_NO_LAMINAR_DEFER_ARGS, FLOATI_NO_LAMINAR_SKIP_ONCE.
- レンダリングSpeed: layout reads the style properties it asks for most from one small record per element instead of a lookup each time (layout time on an encyclopedia page 389 -> 336 ms, on a news page 366 -> 317 ms). Switch: FLOATI_NO_BOX_FACTS.
- レンダリングSpeed: large objects hash their keys 8 bytes at a time and list their few internal keys, so a missing property is found faster (19.1 -> 11.8 ms). Switches: FLOATI_NO_WORD_KEY_HASH, FLOATI_NO_DICT_DUNDER_NAMES.
- JavaScript と JITSpeed: a whole-number sum that grows past 32 bits mid-loop stays an integer in optimized code (3.7 -> 2.4 ms). Switch: FLOATI_NO_FB_EXACT_INT.
- JavaScript と JITFix: after a loop that picked one of two strings each time, reading the string's length could return the value from the second-to-last pass in optimized code.
- レンダリングFix: a derived class constructor throws as the reference browser does when this is used before super(), when super() runs twice, or when it returns a primitive. Switch: FLOATI_NO_DERIVED_THIS_TDZ.
- JavaScript と JITFix: functions declared in a direct eval land in the calling function (sloppy) or the eval itself (strict), not on the global object. Switch: FLOATI_NO_EVAL_LOCAL_FNS.
- レンダリングFix: an object literal's computed keys become property keys before the values after them run. Switch: FLOATI_NO_KEY_ORDER.
- タブと画面Fix: a page's top-level let, const and class are global names but not properties of window. Switch: FLOATI_NO_GLOBAL_LEXICAL.