'Performance wise, arer both theses lines of code the same in csharp for Unity?

Performance wise, arer both theses lines of code the same ?

pictureExample.sprite = Resources.Load<Sprite>("my_png");
pictureExample.sprite = Resources.Load<Sprite>("my_png");
pictureExample.sprite = Resources.Load<Sprite>("my_png");
pictureExample.sprite = Resources.Load<Sprite>("my_png");

And this code

pictureExample.sprite = Resources.Load<Sprite>("my_png");

The question is mostly about performance and memory management.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source