Commit d727b03
committed
Speed up bootstrap __build_class__ a little bit
Since we're iterating over the layouts table one by one, and the layouts
table will always be at least LayoutId::kLastBuiltinId layouts long, use
`Runtime::layoutAt` instead of `Runtime::layoutAtSafe`, which does a
bunch of checks. This search is still linear and kind of long, though.1 parent dc0a214 commit d727b03
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
87 | 95 | | |
88 | 96 | | |
89 | 97 | | |
| |||
0 commit comments