1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
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
..
2021-02-15 17:53:07 +02:00
2021-04-26 09:59:23 +03:00
2021-04-29 21:00:17 +03:00
2021-04-25 18:57:55 +03:00
2021-03-29 11:17:00 +02:00