From 7e17cd1c834e415b3ce7375483f67796912d11ab Mon Sep 17 00:00:00 2001 From: thatguy11325 <148832074+thatguy11325@users.noreply.github.com> Date: Fri, 10 Nov 2023 01:00:10 -0500 Subject: [PATCH] Fix a couple performance hints --- pyboy/core/ram.pxd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyboy/core/ram.pxd b/pyboy/core/ram.pxd index a6d48f564..e3665730a 100644 --- a/pyboy/core/ram.pxd +++ b/pyboy/core/ram.pxd @@ -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