Skip to content

perf(options): perf Fuzz Test Go File#3692

Merged
ndyakov merged 1 commit into
redis:masterfrom
feiguoL:master
Feb 3, 2026
Merged

perf(options): perf Fuzz Test Go File#3692
ndyakov merged 1 commit into
redis:masterfrom
feiguoL:master

Conversation

@feiguoL

@feiguoL feiguoL commented Jan 26, 2026

Copy link
Copy Markdown
Contributor

Changes:

  • Eliminated repeated string conversions - Convert byte slice to string once
  • Functional approach - Used function slice for cleaner operation selection
  • Better iteration logic - More efficient bounds checking and indexing
  • Configurable constants - All magic numbers moved to constants
  • Improved iteration calculation - Uses percentage-based approach for better fuzzing

@ndyakov

@jit-ci

jit-ci Bot commented Jan 26, 2026

Copy link
Copy Markdown

Hi, I’m Jit, a friendly security platform designed to help developers build secure applications from day zero with an MVS (Minimal viable security) mindset.

In case there are security findings, they will be communicated to you as a comment inside the PR.

Hope you’ll enjoy using Jit.

Questions? Comments? Want to learn more? Get in touch with us.

@ndyakov

ndyakov commented Jan 26, 2026

Copy link
Copy Markdown
Member

Hello @feiguoL, thank you for opening this PR. Are you using those for fuzz testing?

@feiguoL

feiguoL commented Jan 27, 2026

Copy link
Copy Markdown
Contributor Author

Hello @feiguoL, thank you for opening this PR. Are you using those for fuzz testing?
@ndyakov

yes, we use fuzz test to find indetectable crashers, it‘s a useful autotest tools in projects white box testing。
nNUpvA2PWYSaZMqNfWCMXtCpAQsNe8geg6ui4ayFyJSQP4QBHdpPsk9DcRlnZIr0

now suggest ai code review like Sourcery AI
image

Changes:
- Eliminated repeated string conversions - Convert byte slice to string once
- Functional approach - Used function slice for cleaner operation selection
- Better iteration logic - More efficient bounds checking and indexing
- Configurable constants - All magic numbers moved to constants
- Improved iteration calculation - Uses percentage-based approach for better fuzzing

Co-authored-by: feiguoL <feig.work@gmail.com>
Change-Id: Ie6929037106bd7e648aeb20f422593eb700ecb60
@ndyakov ndyakov merged commit 2fc030f into redis:master Feb 3, 2026
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants