Large Object Heap and String Objects coming from a queue

后端 未结 4 800
终归单人心
终归单人心 2021-02-14 01:06

I have a windows console app that is supposed to run without restarts for days and months. The app retrieves \"work\" from an MSMQ and process it. There are 30 threads that proc

4条回答
  •  情深已故
    2021-02-14 01:28

    How about using String.Intern(...) to eliminate duplicates references. It has a performance penalty, but depending on your strings it might have an impact.

提交回复
热议问题