I haven't found too much documentation on the differences of the .format() function and f'', My current dilemma is this. I need to cut corners in terms of efficiency where ever I can, this program will be handling very large datasets and I'm out of the 'Just got to make it work stage' so wherever I can drop some CPU usage for the same result I'll take it.
I've tried going to the actual python documentation but wasn't able to find much on it, maybe this is an industry kept secret : o? Anyways, I've also tried print logging every available piece of data on the two and trying to break them in similar ways to see a difference but I haven't been able to tell too much of a difference. Maybe someone knows of a testcase I can use to break a single line format?
Example :
return 'Python3 Is An {} language'.format('Amazing')
x = 'Amazing'
return f'Python3 Is An {x} language'