3 ms·
https://github.com/maxpert/raspchat/blob/79315d861968c1266701d07cb11d1db2fb95f47c/src/sibte.so/rascore/snowflake.go#L83 https://github.com/maxpert/raspchat/blob
by dullgiulio 9y ago
https://github.com/maxpert/raspchat/blob/79315d861968c1266701d07cb11d1db2fb95f47c/src/sibte.so/rascore/snowflake.go#L83 https://github.com/maxpert/raspchat/blob/79315d861968c126670... This is a spinner?! No wonders the code is slow.
The general use of inheritance and very non-idiomatic code makes me think this is another person who ditched Go before understanding any of it. It seems a very popular sport.
- jimsmart 9y agoAs the time-old adage goes "a bad workman blames his tools".
- koffiezet 9y agoAnd if you look where that code is called from - wrapped inside a mutex... And then people wonder why it eats up 100% CPU and are completely maxed out before reaching 1000 requests/sec... Yup... Bad slow language!