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

fix(perf): Improve performance of event processing by avoiding regex clone #767

Merged
merged 3 commits into from
Sep 11, 2020

Conversation

untitaker
Copy link
Member

We clone the regex field for newtypes as we inherit the parent
processing state. That is very expensive.

We could just use Arc here, but we could also just make FieldAttrs Copy
again like Armin had it from the start, and build up a map of regexes
someplace else.

I think I didn't know how to write Rust when I introduced the newtypes
behavior.

We clone the regex field for newtypes as we inherit the parent
processing state. That is very expensive.

We could just use Arc here, but we could also just make FieldAttrs Copy
again like Armin had it from the start, and build up a map of regexes
someplace else.

I think I didn't know how to write Rust when I introduced the newtypes
behavior.
@untitaker untitaker requested a review from a team September 10, 2020 18:16
@untitaker untitaker changed the title fix(perf): Do not clone regex during processing fix(perf): Improve performance of event processing by avoiding regex clone Sep 10, 2020
@untitaker untitaker merged commit 422fc41 into master Sep 11, 2020
@untitaker untitaker deleted the fix/regex-perf branch September 11, 2020 08:40
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