Skip to content

magento 2 : is it impact on isting page performance for $_product->getResource()->getAttribute(‘custom_attribute_code’)?

I have a custom attribute which has 15 text values.
I am using $_product->getResource()->getAttribute($attributecode)->getFrontend()->getValue($_product); . In catalog page I have used above code get the text value of attribute for every product in for loop, is it impacted on performance ? Above code everytime call in database to get the attribute optiontext ?