Source Code Analysis for Performance Enhancement of the Mean Shift Algorithm

ABSTRACT Background The original serial implementation of the segmentation algorithm exhibits suboptimal performance, motivating a systematic optimization effort without compromising accuracy. Objective To analyze the unoptimized serial code and apply iterative code and compiler optimizations while preserving segmentation accuracy. Methods A multi‐stage optimization process was employed: Initial algorithm profiling to identify bottlenecks. Iterative application of static code transformations. Integration of compiler‐level optimizations at each stage. Results Performance testing demonstrates substantial speedups: 6x to 8x improvement over the original implementation, depending on optimization stage. Parallelization in the final step further enhances throughput without sacrificing correctness. Conclusion Systematic, profile‐guided optimization by combining code refactoring and compiler tuning yields significant performance gains. The approach maintains accuracy while enabling efficient parallelization, offering a scalable template for optimizing similar compute‐intensive algorithms.

Authors

Institutions

Publication Details

Journal
Software Practice and Experience
Published
2025-09-16
DOI
https://doi.org/10.1002/spe.70021
Citations
1
Primary Topic
Advanced Data Compression Techniques
Type
article
Field-Weighted Citation Impact
1.28
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Source Code Analysis for Performance Enhancement of the Mean Shift Algorithm

Damir Demirović, Senada Avdić
1 citations
Software Practice and Experience
Advanced Data Compression Techniques
1.28
article

Source Code Analysis for Performance Enhancement of the Mean Shift Algorithm

Damir Demirović, Senada Avdić
article en
1 citations

Abstract

ABSTRACT Background The original serial implementation of the segmentation algorithm exhibits suboptimal performance, motivating a systematic optimization effort without compromising accuracy. Objective To analyze the unoptimized serial code and apply iterative code and compiler optimizations while preserving segmentation accuracy. Methods A multi‐stage optimization process was employed: Initial algorithm profiling to identify bottlenecks. Iterative application of static code transformations. Integration of compiler‐level optimizations at each stage. Results Performance testing demonstrates substantial speedups: 6x to 8x improvement over the original implementation, depending on optimization stage. Parallelization in the final step further enhances throughput without sacrificing correctness. Conclusion Systematic, profile‐guided optimization by combining code refactoring and compiler tuning yields significant performance gains. The approach maintains accuracy while enabling efficient parallelization, offering a scalable template for optimizing similar compute‐intensive algorithms.

Software Practice and ExperienceVol. 55(12)
University of Tuzla (BA)
Openalex Percentile: Top 16%
Advanced Data Compression Techniques
1.28
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.