Skip to content

Conversation

@kevin-hv
Copy link

Replaced for loops with while loops, which drastically improves the performance.

Test data:

  • Hash: "B05iM@00009Y-;xv"
  • Size: .init(width: 400, height: 200)
  • Punch: 1

Resulting in image loadtime:

  • From: 0.2589300870895386
  • To: 0.034584999084472656

@jerry-git jerry-git added Swift algorithm Relates to the BlurHash algorithm labels Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

algorithm Relates to the BlurHash algorithm Swift

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants