This is an automated email from the ASF dual-hosted git repository.

tballison pushed a commit to branch TIKA-4809-stage-9
in repository https://gitbox.apache.org/repos/asf/tika.git

commit 9c9e6755538ee345e0af0968da34149940c6102a
Author: tallison <[email protected]>
AuthorDate: Mon Aug 10 21:05:18 2026 -0400

    TIKA-4809: Trim the NO_PARSE poll slice from 5ms to 1ms
---
 .../java/org/apache/tika/pipes/core/server/PipesServer.java   | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git 
a/tika-pipes/tika-pipes-core/src/main/java/org/apache/tika/pipes/core/server/PipesServer.java
 
b/tika-pipes/tika-pipes-core/src/main/java/org/apache/tika/pipes/core/server/PipesServer.java
index 069e8c4170..c8da909c71 100644
--- 
a/tika-pipes/tika-pipes-core/src/main/java/org/apache/tika/pipes/core/server/PipesServer.java
+++ 
b/tika-pipes/tika-pipes-core/src/main/java/org/apache/tika/pipes/core/server/PipesServer.java
@@ -423,12 +423,13 @@ public class PipesServer implements AutoCloseable {
     }
 
     /**
-     * Poll slice used before the intermediate result has been written. The 
parsing modes add
-     * theirs immediately and then block on the latch released below, so this 
is short-lived --
-     * but NO_PARSE never produces one at all, and a long slice here was 
costing every such
-     * request the full wait before completion was even checked.
+     * Poll slice used before the intermediate result has been written. 
NO_PARSE never produces
+     * one, so this is the floor on every such request; the parsing modes add 
theirs immediately
+     * and then block on the latch released below, so they spin here only 
while pre-parse
+     * (digest + detect) runs. Kept short deliberately -- at 5ms /detect 
measured 14.6ms per
+     * request against 10.3ms here.
      */
-    private static final long PRE_INTERMEDIATE_POLL_MS = 5;
+    private static final long PRE_INTERMEDIATE_POLL_MS = 1;
 
     /** Steady-state slice once the intermediate result is out of the way. */
     private static final long COMPLETION_POLL_MS = 100;

Reply via email to