From cf0c30c3922871d4febc6f29669c2e61d41a2cfb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sun, 27 Jul 2008 18:40:17 +0000 Subject: [PATCH] * suggestion for chunked BLOBs. --- citadel/modules/sync/TODO.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/citadel/modules/sync/TODO.txt b/citadel/modules/sync/TODO.txt index 326402e50..d2852f9ba 100644 --- a/citadel/modules/sync/TODO.txt +++ b/citadel/modules/sync/TODO.txt @@ -59,3 +59,18 @@ timestamp every thing to determine the need for updates. If we do this right this module could replace IGNET and ARTV and could be used clients to sync mailboxes and calendars etc. + +We should care a bit about performance here. +-> not use the sendcommand/ctdl_ipc here. +To gain performance, (profiler says...) we musn't read byte by byte aymore, but read blocks. +thus the out/input format should be a bit similar to the http chunked mode, sending blobs of +n bytes at once. +Probably up 64K windows are apropriate here. it could look like that: + +Messageheader=blabla +AnotherMessageHeader=blub +DATA CHUNK 65535 +< 64 k BLOB > +CHUNK 2344 +< 2344 bytes; probably the overlaps of the message. > + -- 2.39.2