Skip to content

Add experimental impementation of SIMD-accelerated Bitmap.differenceFull and Bitmap.differencePartial - #229

Merged
valeriyvan merged 3 commits into
mainfrom
simd-difference
Aug 11, 2025
Merged

Add experimental impementation of SIMD-accelerated Bitmap.differenceFull and Bitmap.differencePartial#229
valeriyvan merged 3 commits into
mainfrom
simd-difference

Conversation

@valeriyvan

@valeriyvan valeriyvan commented Aug 11, 2025

Copy link
Copy Markdown
Owner

No description provided.

@valeriyvan
valeriyvan requested a review from Copilot August 11, 2025 11:24
@valeriyvan valeriyvan self-assigned this Aug 11, 2025
@valeriyvan valeriyvan added the enhancement New feature or request label Aug 11, 2025
@valeriyvan valeriyvan changed the title Add experimental impementation of SIMD-accelerated Bitmap.differenceF… Add experimental impementation of SIMD-accelerated Bitmap.differenceFull and Bitmap.differencePartial Aug 11, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds experimental SIMD-accelerated versions of bitmap difference calculations to improve performance. The implementation introduces SIMD4-based operations for calculating pixel differences, replacing scalar arithmetic operations in the bitmap comparison functions.

  • Adds experimental SIMD-accelerated variants of differenceFull and differencePartial methods
  • Introduces rgbaAsSIMD4Int32 helper method for SIMD pixel data access
  • Changes differencePartial method visibility from internal to public

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
Sources/geometrize/BitmapDifference.swift Adds SIMD-accelerated experimental variants and refactors existing difference calculation methods
Sources/geometrize/Bitmap.swift Adds helper method for loading pixel data as SIMD4 vectors

Comment thread Sources/geometrize/Bitmap.swift
Comment thread Sources/geometrize/BitmapDifference.swift Outdated
Comment thread Sources/geometrize/BitmapDifference.swift Outdated
Comment thread Sources/geometrize/BitmapDifference.swift
@valeriyvan
valeriyvan merged commit 324f647 into main Aug 11, 2025
2 checks passed
@valeriyvan
valeriyvan deleted the simd-difference branch August 11, 2025 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants