Skip to content

Optimized Search by replacing expensive std calls with branchless lookups#2461

Open
MakarDev wants to merge 3 commits intoWerWolv:masterfrom
MakarDev:search_optimized
Open

Optimized Search by replacing expensive std calls with branchless lookups#2461
MakarDev wants to merge 3 commits intoWerWolv:masterfrom
MakarDev:search_optimized

Conversation

@MakarDev
Copy link

Problem description

std calls in searchString are costly, slowing down search significantly

Implementation description

Replacing std calls with branchless lookups allows 2x speedup for search

Screenshots

Here is the full demo with benchmarks: https://x.com/MakarKuznietsov/status/1972044060530823381

Optimized by functio.ai

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