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 87ccfb535f
commit 90340c5c8a
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