Hi RA

The timeouts you found in syncer.js relate to the synchronisation that
happens between the browser and the server. The defaults mean that the
browser will wait for 1 second after a tiddler has last been modified
before it sends it to the server (unless 10s goes by in which case it is
sent anyway). The lag you are describing sounds like it's happening on each
keypress, suggesting that the server isn't involved.

It would be useful to know your OS and browser. Also, would you be able to
check with your browser dev tools whether the lag coincides with network
traffic between the browser and the server?

Many thanks,

Jeremy.








On Sat, Jan 18, 2014 at 9:14 AM, RA <[email protected]> wrote:

> Why did I not think of this before! Another thread gave me the idea -
> Instead of running TW in node.js on one computer and accessing it via ssh
> tunnel, I can just put the files in a Dropbox folder and setup node.js on
> every computer.
>
>
> On Thursday, January 16, 2014 9:38:26 PM UTC-8, RA wrote:
>>
>> Port forward didn't make any perceivable difference compared to SSH
>> tunnel...
>> I should probably clarify - the lag I'm talking about is the time from
>> when I press a key to the moment a letter appears in the edit window (or
>> disappears, if it was Backspace).
>>
>> On Thursday, January 16, 2014 7:18:48 PM UTC-8, RA wrote:
>>>
>>> Actually it looks like the countdown is already there, found this in
>>> syncer.js:
>>>
>>> Syncer.prototype.taskTimerInterval = 1 * 1000; // Interval for sync
>>> timer
>>> Syncer.prototype.throttleInterval = 1 * 1000; // Defer saving tiddlers
>>> if they've changed in the last 1s...
>>> Syncer.prototype.fallbackInterval = 10 * 1000; // Unless the task is
>>> older than 10s
>>> Syncer.prototype.pollTimerInterval = 60 * 1000; // Interval for polling
>>> for changes from the adaptor
>>>
>>> The lag is more pronounced when I'm editing remotely via ssh tunnel. So
>>> must be network latency? Any tips on how to reduce the effect of that?
>>> Should I use port forwarding instead of tunneling through ssh?
>>>
>>> Would it help to move it to the cloud? Anyone got it to work on
>>> Openshift or any other (free) nodejs PaaS provider?
>>>
>>>
>>> On Thursday, January 16, 2014 7:04:24 PM UTC-8, RA wrote:
>>>>
>>>> I like that my draft is continuously saved and redrawn in preview, but
>>>> I am experiencing a lag after each key press, sufficient enough that it's
>>>> starting to bother me. Is it possible to introduce (or increase if it's
>>>> already present) a countdown so saving and preview redraw happen only after
>>>> a second or two of inactivity (no key pressed)?
>>>>
>>>  --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to