You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
yrby builds against yrs 0.28.1. An insert into a text no longer recounts
the UTF-16 length of each string before it, so appending to a long text
costs about the same at any length: 80k one-character appends took 2.5 s
and now take 48 ms.
Experimental
Y::Doc#edit returns the document's own writes and never a peer's. The
document keeps the update of every local transaction until an edit returns
it, merged into one, so a write made outside an edit, from another thread
or fiber, or in a block that raised comes with the next edit. Before this,
the edit returned everything the document gained while the block ran, so
an update applied from a peer meanwhile was sent again as the edit's own,
and a caller had to lock the document to keep them apart. Each edit takes
everything unsent at once, so the updates edits return have no gaps
between them. A peer's update doesn't wait for an edit.
Y::Map#set_text(key, content = "") stores a new Y.Text at a key and
returns its live Y::Text. Y::Array#push_text(content = "") and #insert_text(index, content = "") do the same in a list. Before this,
Ruby could edit a nested Y.Text a browser made but couldn't make one,
so a server couldn't set up a form whose fields merge typing.