Skip to content
Snippets Groups Projects
Commit bbbcfd7a authored by Daniel Czerwonk's avatar Daniel Czerwonk
Browse files

little performance optimization

parent 8916eda2
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ import ( ...@@ -8,7 +8,7 @@ import (
func CommunityStringForUint32(v uint32) string { func CommunityStringForUint32(v uint32) string {
e1 := v >> 16 e1 := v >> 16
e2 := v - e1<<16 e2 := v & 0x0000FFFF
return fmt.Sprintf("(%d,%d)", e1, e2) return fmt.Sprintf("(%d,%d)", e1, e2)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment