Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/rarePublic
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Regexp mem opt#119

Open
zix99 wants to merge10 commits intomaster
base:master
Choose a base branch
Loading
fromregexp-mem-opt
Open

Regexp mem opt#119

zix99 wants to merge10 commits intomasterfromregexp-mem-opt

Conversation

zix99
Copy link
Owner

@zix99zix99 commentedFeb 18, 2025
edited
Loading

Optimize all matchers into zero-allocs by using passed-in buffer

I've been doing a ton of benchmarking on this, and while it does save some allocs, it actually seems to increase frozen GC time and net-neutral on general runtime. Benchmarks on a regex itself does have significant savings, so it does seem counter-intuitive.

There's more to figure out here before/if merging.

@netlifyNetlify
Copy link

netlifybot commentedFeb 18, 2025
edited
Loading

Deploy Preview forraredocs ready!

NameLink
🔨 Latest commitda99380
🔍 Latest deploy loghttps://app.netlify.com/sites/raredocs/deploys/67b917273a3bea0008f36b66
😎 Deploy Previewhttps://deploy-preview-119--raredocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to yourNetlify site configuration.

@codecov-commenter
Copy link

codecov-commenter commentedFeb 20, 2025
edited
Loading

⚠️ Please install the'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is75.00000% with20 lines in your changes missing coverage. Please review.

Project coverage is 92.35%. Comparing base(96e50b0) to head(da99380).
Report is 2 commits behind head on master.

Files with missing linesPatch %Lines
pkg/testutil/mem.go41.37%14 Missing and 3 partials⚠️
pkg/matchers/fastregex/re2.go81.25%2 Missing and 1 partial⚠️

❗ Your organization needs to install theCodecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@##           master     #119      +/-   ##==========================================- Coverage   92.53%   92.35%   -0.19%==========================================  Files         120      122       +2       Lines        6255     6315      +60     ==========================================+ Hits         5788     5832      +44- Misses        346      359      +13- Partials      121      124       +3

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report?Share it here.

@@ -7,6 +7,7 @@ type Factory interface {

// A non-thread-safe matcher that can be used to find matches
type Matcher interface {
FindSubmatchIndex(b []byte) []int
FindSubmatchIndexDst(b []byte, dst []int) []int
Copy link
OwnerAuthor

Choose a reason for hiding this comment

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

docs

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@zix99@codecov-commenter

[8]ページ先頭

©2009-2025 Movatter.jp