Don’t understand the question. Are your referring to memory swap? If so, no, you don’t want to “turn off” swap. Let macOS do its job and manage system memory usage. Your “slow” Mac is due to something else. Might be able to help with a lot more details about the applications used and workloads. What are you doing? Model of Mac? Version of OS? Etc.