implements display based subtype checking (6.4x faster without threads; 2.8x faster with threads) (#20781)
* WIP: fast 'of' operator based on the literature * implement display based subtype checking Co-authored-by: Araq <rumpf_a@web.de>
This commit is contained in:
parent
ca3b6cba5d
commit
7d15fdd375
5 changed files with 83 additions and 52 deletions
|
|
@ -1592,7 +1592,9 @@ when not defined(js) and defined(nimV2):
|
|||
TNimTypeV2 {.compilerproc.} = object
|
||||
destructor: pointer
|
||||
size: int
|
||||
align: int
|
||||
align: int16
|
||||
depth: int16
|
||||
display: ptr UncheckedArray[uint32] # classToken
|
||||
name: cstring
|
||||
traceImpl: pointer
|
||||
typeInfoV1: pointer # for backwards compat, usually nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue