Recently, I discovered that my student was engaged in an independent project in which he used very large lines (2-4 MB) as values in a dictionary.
I never had a reason to work with such large blocks of text, and I wondered if there were performance problems associated with creating such large lines.
Is there a better way to do this than just create a string? I understand that this question is highly contextual, but I am looking for generalized answers that can cover more than one possible use case.
If you work with such text, how would you save it in your code, and do you do nothing else than if you were just working with a regular string of several characters?
source
share