Граф коммитов

1 коммит

Автор SHA1 Сообщение Дата
Ayke van Laethem
f9865a08bc transform: optimize string comparisons against ""
This optimizes a common pattern like:

    if s != "" {
        ...
    }

to:

    if len(s) != 0 {
        ...
    }

This avoids a runtime call and thus produces slightly better code.
2021-03-18 17:22:00 +01:00
Переименован с transform/stringtobytes_test.go (Смотреть далее)