|
|
|
|
|
by jnordwick
2540 days ago
|
|
I don't do any a lot web stuff but most of my go code is quick hacks for data analysis or display but this is still really interesting. I had a feeling go was slow, but I didn't expect such poor performance numbers. Some of that is probably the heavy reliance in reflection. For example they json parsing you need to go to the bottom of the list to find a go program, and go's json library makes extensive use of reflection and tags to guide the parsing. It is somewhat ironic that go's big feature was AOT compilation static type checking, but it seems to immediately devolving into reflection and parsing tag key value strings to do anything. I had a typo on one of those they other day and could find the bug for an hour. |
|
In real code that I write, most projects never import reflect. Sometimes I import it in tests.