rails/rails — pull request #6144 by bogdan (2012-05-03 15:52:48+00:00)
Title: RouteSet: optimize routes generation when globbing is used

One small step to get rid of conditional optimization in routes.
Now routes are optimized even when globbing is used.

See performance difference for: `URL generation with globbing`
https://gist.github.com/f42886c14e3661623c65

```

Running benchmark with current working tree
PROFILE: interrupts/evictions/bytes = 7/0/1136
Checkout HEAD^
Running benchmark with HEAD^
PROFILE: interrupts/evictions/bytes = 8/0/1168
Checkout to previous HEAD again

user system total real
------------------------------------------------draw routes
After patch: 0.300000 0.000000 0.300000 ( 0.303803)
Before patch: 0.300000 0.010000 0.310000 ( 0.312239)

--------------------------------------simple URL generation
After patch: 0.010000 0.000000 0.010000 ( 0.006227)
Before patch: 0.010000 0.000000 0.010000 ( 0.006297)

-------------------------URL generation with params as hash
After patch: 0.070000 0.000000 0.070000 ( 0.074639)
Before patch: 0.070000 0.010000 0.080000 ( 0.075167)

-----------------URL generation with handle_positional_args
After patch: 0.080000 0.000000 0.080000 ( 0.082639)
Before patch: 0.080000 0.000000 0.080000 ( 0.083506)

-------------------------------URL generation with globbing
After patch: 0.010000 0.000000 0.010000 ( 0.007267)
Before patch: 0.070000 0.010000 0.080000 ( 0.078637)

-------------------------------------handle_positional_args
After patch: 0.000000 0.010000 0.010000 ( 0.003361)
Before patch: 0.000000 0.010000 0.010000 ( 0.003353)
```