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

replace foreach(dchar; s) loop with explicit for+range #327

Merged
merged 2 commits into from Sep 27, 2013

Conversation

MartinNowak
Copy link
Contributor

  • Using foreach (dchar; string) results in a runtime
    call to _aApplycd which is a less optimized decoding
    routine and invokes the foreach delegate for each dchar.

- Using foreach (dchar; string) results in a runtime
  call to _aApplycd which is a less optimized decoding
  routine and invokes the foreach delegate for each dchar.
@s-ludwig
Copy link
Member

Thanks. The HTML encoding also seems like a low hanging fruit to change the input string to a generic input range, I'll do that.

s-ludwig added a commit that referenced this pull request Sep 27, 2013
replace foreach(dchar; s) loop with explicit for+range
@s-ludwig s-ludwig merged commit 166ed1b into vibe-d:master Sep 27, 2013
@MartinNowak MartinNowak deleted the fasterEscape branch January 26, 2014 04:22
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.

None yet

2 participants