[progress Communities] [progress Openedge Abl] Forum Post: Re: Openedge.net Library Slow...

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
P

Peter Judge

Guest
I just tested bumping up the receive buffer size from 8192 (0x2000) to 524288 (0x80000) bytes and saw times drop from ~65sec to ~15 sec. The socket takes just a few millis to respond but it looks like the processing of that payload is what’s taking time (example below). Not a lot (15 or so millis per chunk) but that’ll add up when you’re dealing with ~2500 vs ~200 chunks. [17/04/11@11:34:46.800-0400] P-001156 T-016324 1 4GL LogMgrWrtr [O.Net DEBUG] ReadHandler: OK? Yes ---> [17/04/11@11:34:46.803-0400] P-001156 T-016324 1 4GL LogMgrWrtr [O.Net DEBUG] ReadHandler: time(ms)=4 [17/04/11@11:34:46.806-0400] P-001156 T-016324 1 4GL LogMgrWrtr [O.Net DEBUG] ReadHandler: size(b)=55200 [17/04/11@11:34:46.809-0400] P-001156 T-016324 1 4GL LogMgrWrtr [O.Net DEBUG] CHUNK: NUM= 312 [17/04/11@11:34:46.813-0400] P-001156 T-016324 1 4GL LogMgrWrtr [O.Net DEBUG] CHUNK: SIZE(b)= 524288 [17/04/11@11:34:46.816-0400] P-001156 T-016324 1 4GL LogMgrWrtr [O.Net DEBUG] CHUNK: READ(b)= 55200 [17/04/11@11:34:46.819-0400] P-001156 T-016324 1 4GL LogMgrWrtr [O.Net TRACE] CHUNK: FILE= temp\response-data-chunk-00312.txt ---> [17/04/11@11:34:46.826-0400] P-001156 T-016324 1 4GL LogMgrWrtr [O.Net DEBUG] ReadHandler:OnDataReceived time(ms)=17 [17/04/11@11:34:46.830-0400] P-001156 T-016324 1 4GL LogMgrWrtr [O.Net DEBUG] ReadHandler: OK? yes [17/04/11@11:34:46.833-0400] P-001156 T-016324 1 4GL LogMgrWrtr [O.Net DEBUG] ReadHandler: time(ms)=3 [17/04/11@11:34:46.836-0400] P-001156 T-016324 1 4GL LogMgrWrtr [O.Net DEBUG] ReadHandler: size(b)=38640 I would have suggested making a HEAD request to get the size of the response first and adjusting the receive buffer based on that but I found a bug in processing HEAD requests (PSC00356585)

Continue reading...
 
Status
Not open for further replies.
Back
Top