mapbox/carto

Nested regex can cause extremely slow generation times and longer xml

开放

#213 创建于 2012年12月13日

 (13 条评论) (0 个反应) (0 位负责人)JavaScript (132 个派生)auto 404
bughelp wantedperformance

仓库指标

星标
 (658 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

As a particularly noticeable example is the TileMill example open-streets-dc where converting two sections with the widths to regex, or even just changing a few lines from = to =~ gives significantly different results. https://github.com/tilemill-project/tilemill/blob/master/examples/open-streets-dc/highway.mss#L119 is an example line to change to get the difference.

I'm using Carto 0.9.4.

贡献者指南