class_docstr: The main 'connection' object for PickleShare database 
class_docstr_tok: ["The","main","'connection","'","object","for","PickleShare","database"]
docstr: Compress category 'hashroot', so hset is fast again
  
  hget will fail if fast_only is True for compressed items (that were
  hset before hcompress).
docstr_tok: ["Compress","category","'hashroot","'",",","so","hset","is","fast","again","hget","will","fail","if","fast_only","is","True","for","compressed","items","(","that","were","hset","before","hcompress",")","."]
code: def hcompress(self, hashroot):
      """Compress category 'hashroot', so hset is fast again
  
      hget will fail if fast_only is True for compressed items (that were
      hset before hcompress).
  
      """
      hfiles = self.keys(hashroot + "/*")
      all = {}
      for f in hfiles:
          # print "using",f
          all.update(self[f])
          self.uncache(f)
  
      self[hashroot + "/xx"] = all
      for f in hfiles:
          p = self.root / f
          if p.name == "xx":
              continue
          p.unlink()
  
imports: from __future__ import print_function
  import os, stat, time
  import errno
  import sys
label_desc: Use image node_id 7 for calling the PickleShareDB obj's underlying member method code with example usage: obj.hcompress(hashroot) without return types