Using pins.setPull inside forever block

Hi!
Assuming I have the following code:

pins.setPull(DigitalPin.P0, PinPullMode.PullUp)
basic.forever(function () {
    if (pins.digitalReadPin(DigitalPin.P0) == 0) {
    	
    }
})

Is there any measureable difference if I turn it to this (pins.setPull inside forever block)?

basic.forever(function () {
    pins.setPull(DigitalPin.P0, PinPullMode.PullUp)
    if (pins.digitalReadPin(DigitalPin.P0) == 0) {
    	
    }
})