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

Added dispatch_once to NSRegularExpression init #107

Merged
merged 1 commit into from
Jun 27, 2016
Merged

Conversation

glenyi
Copy link
Contributor

@glenyi glenyi commented Jun 26, 2016

The NSRegularExpression doesn't need to be created every time. Using dispatch_once will see performance gains for large markdown files.

@mdiep
Copy link
Owner

mdiep commented Jun 27, 2016

Thanks!

@mdiep mdiep merged commit d10731e into mdiep:master Jun 27, 2016
@SidIyer
Copy link

SidIyer commented Jun 27, 2016

Nicely done @glenyi !

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.

3 participants