parsePOSIXTime ByteString conversion
Some easy (though tiny) speed wins. Sponsored-by: Luke T. Shumaker on Patreon
This commit is contained in:
parent
d3de3c28eb
commit
77e9781ae2
13 changed files with 22 additions and 16 deletions
|
@ -185,7 +185,7 @@ readInodeCache s = case words s of
|
|||
(inode:size:mtime:mtimedecimal:_) -> do
|
||||
i <- readish inode
|
||||
sz <- readish size
|
||||
t <- parsePOSIXTime $ mtime ++ '.' : mtimedecimal
|
||||
t <- parsePOSIXTime $ encodeBS $ mtime ++ '.' : mtimedecimal
|
||||
return $ InodeCache $ InodeCachePrim i sz (MTimeHighRes t)
|
||||
_ -> Nothing
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue