Closed bogdan closed 11 years ago
This pull request cannot be automatically merged.
Rebased.
There hasn't been any discussion on this issue since it was rebased. I believe additional code was introduced into the formatter since. Is this implementation with the intent of speeding up the generation time under consideration? If so what should start the conversation, otherwise we should close the issue.
@schneems don't see additional code here: Constraits verification code just moved from one place to another. This makes it more lazy: this code got executed only in cases where it is needed.
@bogdan journey was merged on Rails so I'm closing this one. Mind to open a pull request for the Rails repository if it is still relevant?
Sorry for the delay :bow:
sure
Tried to optimize a way how router handles constraints. During the process find out that constraints for optional parts doesn't work at all. They are simply ignored. This doesn't sound well. This patch changes that test to a different behavior: Constraints for optional parts are not ignored anymore. As @tenderlove said: journey test suite in most cases just tests journey internal and we can change behavior in case it doesn't break actionpack test suite.
Also this patch offers 10% performance boost for named routes generation. https://gist.github.com/2915825