Skip to content

Commit

Permalink
Fix a couple performance hints
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 authored and Baekalfen committed Nov 10, 2023
1 parent f1e80b8 commit 7e17cd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyboy/core/ram.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
# GitHub: https://github.com/Baekalfen/PyBoy
#

cimport cython
from libc.stdint cimport uint8_t
from pyboy.utils cimport IntIOInterface


cdef class RAM:
@cython.locals(n=int)
cdef void save_state(self, IntIOInterface) noexcept
@cython.locals(n=int)
cdef void load_state(self, IntIOInterface, int) noexcept

cdef uint8_t[:] internal_ram0 # Dynamic size for DMG/CGB
Expand Down

0 comments on commit 7e17cd1

Please sign in to comment.