Yeah, print statements are slow. Google “system.out.println slow” for an explanation about why.
One thing you can do is limit how often you’re printing. For example you might only print once per second instead of every frame:
void draw(){
if(frameCount % 60 == 0){
println("hello");
}
}