Closed miripiruni closed 6 years ago
cc @sbmaxx @tadatuta @zxqfox
Но почему у нас вообще есть деградация по скорости? Мы же теперь можем не запускать экранирование для "
?
@zxqfox деградации нет. Это погрешность изменения на локальной машине. Считай, что ничего не изменилось. Можешь попробовать позапускать у себя несколько раз и посмотреть как варьируются результаты.
Мы же теперь можем не запускать экранирование для " ?
Я же измерял без опции. Соответственно, по приборам ничего даже шолохнуться не должно было. А в результате видно только погрешность изменения. Ни больше ни меньше.
Ага, я неправильно трактовал результаты. Спасибо)
Integration test: https://nda.ya.ru/3UDtXQ
Fixes #504
Changes proposed in this pull request
New option
singleQuotesForDataAttrs
.By default data-attributes values will be marked with double quotes. For BEMJSON:
Result of templating:
All double quotes inside
data-test
value was escaped. If you want to avoid such behaviour you can usesingleQuotesForDataAttrs
option.Result of templating with option:
Checklist
Benchmark result
The result within measurement error. Looks like no speed degradation.