v/vlib/v/gen
Delyan Angelov 53ae9dda4b
cgen: speed up auto generated Array_*_contains and Array_*_index methods
Uses a.data instead of array_get, since the auto generated methods
have the calls in a loop that guarantees that the bounds of the arrays
will not be exceeded, thus the inner bounds checking can be skipped.

Results in +5% improvement for V compiled with tcc, doing `v -o x.c cmd/v`,
more with -prod.
2021-05-02 20:35:04 +03:00
..
c cgen: speed up auto generated Array_*_contains and Array_*_index methods 2021-05-02 20:35:04 +03:00
js parser: remove ++/-- exception for some modules (#9895) 2021-04-27 01:41:42 +03:00
native native: fix tests, address comments and a little cleaner macho 2021-04-27 12:24:58 +03:00