Skip to content

Commit

Permalink
Why Pillow-SIMD is even faster
Browse files Browse the repository at this point in the history
  • Loading branch information
homm committed Jul 2, 2016
1 parent 108e72e commit a0e5956
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,17 @@ cache-awareness transposition.

## Why Pillow-SIMD is even faster

Because of SIMD, of course.
Because of SIMD, of course. There are some ideas how to achieve even better
performance.

- **Efficient work with memory** Currently, each pixel is readed from
memory to the SSE register, while every SSE register can handle
four pixels at once.
- **Integer-based arithmetic** Experiments show that integer-based arithmetic
does not affects the quality and increases performance of non-SIMD code
up to 50%, but unfortunately give no advantages on SIMD version.
- **Aligned pixels allocation** Well-known that the SIMD load and store
commands works better with aligned memory.


## Why do not contribute SIMD to the original Pillow
Expand Down

0 comments on commit a0e5956

Please sign in to comment.