Type more stuff for a 2% speedup

This commit is contained in:
Theelgirl 2020-10-25 18:04:04 +00:00 committed by GitHub
parent 29374fe7f6
commit 5ccd42cbc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -3,10 +3,10 @@
# cython: cdivision=True
# cython: wraparound=False
cpdef cy_get_bits_from_image(image):
cpdef str cy_get_bits_from_image(image):
cdef int width, height, x, y
cdef str pixel_bin_rep
cdef (int, int, int) pixel#, white_diff, black_diff
cdef str pixel_bin_rep, bits
cdef (int, int, int) pixel
width, height = image.size