Commit d40d36be authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Make inodeDataKey() a bit more efficient, hopefully.

parent ef5d1063
...@@ -41,8 +41,7 @@ type inodeData struct { ...@@ -41,8 +41,7 @@ type inodeData struct {
// Should implement some hash table method instead? // Should implement some hash table method instead?
func inodeDataKey(parentInode uint64, name string) string { func inodeDataKey(parentInode uint64, name string) string {
// TODO - use something more efficient than Sprintf. return string(parentInode) + ":" + name
return fmt.Sprintf("%x:%s", parentInode, name)
} }
func (self *inodeData) Key() string { func (self *inodeData) Key() string {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment