title: Go JSON decoding is very slow. What would be a better way to do it?
body: <p>I am using Go, Revel WAF and Redis.</p>
  
  <p>I have to store large json data in Redis (maybe 20MB).</p>
  
  <p><code>json.Unmarshal()</code> takes about roughly 5 seconds. What would be a better way to do it?</p>
  
  <p>I tried JsonLib, encode/json, ffjson, megajson, but none of them were fast enough.</p>
  
  <p>I thought about using groupcache, but Json is updated in real time.</p>
  
  <p>This is the sample code:</p>
  
  <pre><code>package main
  
  import (
   "github.com/garyburd/redigo/redis"
    json "github.com/pquerna/ffjson/ffjson"
  )
  
  func main() {
    c, err := redis.Dial("tcp", ":6379")
    defer c.Close()
    pointTable, err := redis.String(c.Do("GET", "data"))
    var hashPoint map[string][]float64
    json.Unmarshal([]byte(pointTable), &amp;hashPoint) //Problem!!!
  }
  </code></pre>