mapbox/carto

Nested regex can cause extremely slow generation times and longer xml

Open

#213 opened on Dec 13, 2012

 (13 comments) (0 reactions) (0 assignees)JavaScript (132 forks)auto 404
bughelp wantedperformance

Repository metrics

Stars
 (658 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide