Skip to content

Faster string scanning#12

Open
ProgramCrafter wants to merge 1 commit into
tidwall:mainfrom
ProgramCrafter:main
Open

Faster string scanning#12
ProgramCrafter wants to merge 1 commit into
tidwall:mainfrom
ProgramCrafter:main

Conversation

@ProgramCrafter

Copy link
Copy Markdown

memchr auto-selects appropriate intrinsics to use on the target; unfortunately it only supports up to 3 characters to search, therefore I could only apply it to strings.

This doubled the processing speed on my workload, where there are many long (and extremely long, like dozens of megabytes long) strings in the JSON file.

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.

1 participant