use strconv.FormatInt which is much faster than fmt.Sprintf
This commit is contained in:
parent
0dd81ad003
commit
879d69d040
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ import (
|
|||
"encoding/binary"
|
||||
"fmt"
|
||||
"os"
|
||||
"strconv"
|
||||
"sync"
|
||||
|
||||
"github.com/conformal/btcdb"
|
||||
|
@ -608,7 +609,7 @@ func (db *LevelDb) setclearSpentData(txsha *btcwire.ShaHash, idx uint32, set boo
|
|||
}
|
||||
|
||||
func int64ToKey(keyint int64) []byte {
|
||||
key := fmt.Sprintf("%d", keyint)
|
||||
key := strconv.FormatInt(keyint, 10)
|
||||
return []byte(key)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue