タグ

ブックマーク / v8.dev (1)

  • Elements kinds in V8 · V8

    Show navigation Note: If you prefer watching a presentation over reading articles, then enjoy the video below! JavaScript objects can have arbitrary properties associated with them. The names of object properties can contain any character. One of the interesting cases that a JavaScript engine can choose to optimize for are properties whose names are purely numeric, most specifically array indices.

    yuya_presto
    yuya_presto 2022/06/23
    ArrayにPACKEDとHOLEY、SMall IntegersとDoublesとどちらでもない、の2x3=6象限があるという話。一度でも高速な方から落ちるような代入操作が行われると、そのArrayは多少遅い版になったまま戻らない。lengthを超えたreadもダメ。
  • 1