valueTreePropertyChanged latency issue

I made a real-time tune-able sample player derived from juce sampleVoice, with sliderAttachment linked to a pitch slider, everything works fine but I always find there can some times have some lagging when you suddenly change the slider massively, the sound doesn’t change immediately.

I found that the latency mostly comes from calling the valueTreePropertyChanged function I used, but don’t know how to fix it.

Any suggestions on this?