Closed wurei closed 6 years ago
I found newWriter make chan is very large, is it can be optimized?
w := &writer{
gMessages: make(chan mqttp.IFace, 0xFFFF),
qos0Messages: make(chan interface{}, 0xFFFF),
qos12Messages: make(chan interface{}, 0xFFFF),
}
Yeah, that needs rework. Thinking
Have push test variant to check
I test 500k connection and memory usage 10G, it‘s much better than before, good work!👍
Thanks for testing. v0.2.2 released
Hi troian: I found memory usage is too high, memory growth is very much when loop count i, the test case as follow: