Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply BindingRedirects much faster #414

Merged
merged 1 commit into from
Dec 4, 2014
Merged

Apply BindingRedirects much faster #414

merged 1 commit into from
Dec 4, 2014

Conversation

forki
Copy link
Member

@forki forki commented Dec 3, 2014

Before: 138ms
Now: 51 ms

/cc @isaacabraham

getFiles "web.config" @
getFiles "app.config"
Directory.GetFiles(rootPath, "*.config", SearchOption.AllDirectories)
|> Seq.filter (fun x -> x.EndsWith "web.config" || x.EndsWith "app.config")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you use EndsWith? searchPattern was without wildcard, shouldn't it be simply x = "web.config" || x = "app.config"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but It's the full path, right? Should be somethin like endwith DirectorySeparator + filename

forki added a commit that referenced this pull request Dec 4, 2014
Apply BindingRedirects much faster
@forki forki merged commit 8fa70a1 into master Dec 4, 2014
@matthid matthid deleted the Redirect branch May 6, 2017 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants