Maps, Sets, DVRs and Classes with Allen Smith | GDevConNA 2022

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ธ.ค. 2024

ความคิดเห็น • 2

  • @jlokanis
    @jlokanis 2 ปีที่แล้ว

    How much of a performance improvement do maps and sets have over the variant attribute solution?

    • @chudchadanstud
      @chudchadanstud 2 ปีที่แล้ว +1

      Not much. If you know the datatype of your key you can simply flatten it to string which is will net you faster performance than maps. If not then use variant to string and store the type string and data string in cluster and flatten it to string and use that as the key. It will give you the same performance as a variant map.