mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 13:41:37 +00:00
1784a14148
reflect.MethodByName is a rather expensive function especially when called on hot path. This became obvious during profiling of db restore. This commit replaces reflection with a cast to an interface. |
||
---|---|---|
.. | ||
binaryBufWriter.go | ||
binaryReader.go | ||
binaryrw_test.go | ||
binaryWriter.go | ||
fileWriter.go | ||
fileWriter_test.go | ||
serializable.go | ||
size.go | ||
size_test.go |