Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for journalRebuildRequired (0.11 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

          }
          flush()
        }
    
        if (size > maxSize || journalRebuildRequired()) {
          cleanupQueue.schedule(cleanupTask)
        }
      }
    
      /**
       * We only rebuild the journal when it will halve the size of the journal and eliminate at least
       * 2000 ops.
       */
      private fun journalRebuildRequired(): Boolean {
        val redundantOpCompactThreshold = 2000
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 34.7K bytes
    - Viewed (0)
Back to top