src/Pure/PIDE/xml.scala
changeset 76351 2cee31cd92f0
parent 75436 40630fec3b5d
child 80429 6f4d5d922da7
equal deleted inserted replaced
76350:978f7ca3329f 76351:2cee31cd92f0
   187 
   187 
   188   /** cache **/
   188   /** cache **/
   189 
   189 
   190   object Cache {
   190   object Cache {
   191     def make(
   191     def make(
   192         xz: XZ.Cache = XZ.Cache.make(),
   192         compress: Compress.Cache = Compress.Cache.make(),
   193         max_string: Int = isabelle.Cache.default_max_string,
   193         max_string: Int = isabelle.Cache.default_max_string,
   194         initial_size: Int = isabelle.Cache.default_initial_size): Cache =
   194         initial_size: Int = isabelle.Cache.default_initial_size): Cache =
   195       new Cache(xz, max_string, initial_size)
   195       new Cache(compress, max_string, initial_size)
   196 
   196 
   197     val none: Cache = make(XZ.Cache.none, max_string = 0)
   197     val none: Cache = make(Compress.Cache.none, max_string = 0)
   198   }
   198   }
   199 
   199 
   200   class Cache(val xz: XZ.Cache, max_string: Int, initial_size: Int)
   200   class Cache(val compress: Compress.Cache, max_string: Int, initial_size: Int)
   201   extends isabelle.Cache(max_string, initial_size) {
   201   extends isabelle.Cache(max_string, initial_size) {
   202     protected def cache_props(x: Properties.T): Properties.T = {
   202     protected def cache_props(x: Properties.T): Properties.T = {
   203       if (x.isEmpty) x
   203       if (x.isEmpty) x
   204       else
   204       else
   205         lookup(x) match {
   205         lookup(x) match {