ID:2769807
 
Resolved
istype() lookups and generation of typesof() lists have been optimized to use O(1) lookup time instead of O(depth). The only exception is that typesof() for mob types work the old way.
Applies to:Dream Daemon
Status: Resolved (514.1579)

This issue has been resolved.
You already did this, I'm just giving you a feature request so you have something to close.

Steal Doom / Roblox / Unity type comparisons to make istype() really fast.

Credit to goof or whoever for first suggesting it.
Credit to Mothblocks from SS13 actually for proposing it first!
Curious for the tl;dr on the new method of type comparisons.
Lummox JR resolved issue with message:
istype() lookups and generation of typesof() lists have been optimized to use O(1) lookup time instead of O(depth). The only exception is that typesof() for mob types work the old way.
In response to Hiead
Neat, I wonder: Does it work properly for types that use parent_type?
In response to Hiead
In my implementation it does, so likely in lummox's also. It's done in the pass after that stuff should be processed.
In response to Lummox JR
Why are mobs treated differently?
In response to DamianQ