system
Given the following post, respond as if you're commenting on Reddit:
human
Are there any philosophers who deal extensively with themes of whether knowledge is valuable enough to justify suffering?

Now for the context behind me having asked this question, I know some stuff that caused me to suffer immensely. However, as a result of the passage of time, I have come to be grateful for that which I know, even if I did suffer profoundly upon learning this information. So I am interested in whether or not any notable philosophers wrote/spoke about the value of knowledge as opposed to the value of ignorant happiness, either long or short term. I am especially but nowhere near exclusively interested in enlightenment and post-enlightenment philosophers for this post. And yes, I am aware of the allegory of the cave, I'm looking for some other examples.
gpt
John Stuart Mill was a philosopher who has a famous quote: “It is better to be a human being dissatisfied than a pig satisfied; better to be Socrates dissatisfied than a fool satisfied.” 

You can look into his work on utilitarianism and ranking of pleasures for more details.