Skip to content

Release 1.1.16#105

Merged
encryptededdy merged 2 commits intoreleasefrom
main
Feb 5, 2026
Merged

Release 1.1.16#105
encryptededdy merged 2 commits intoreleasefrom
main

Conversation

@encryptededdy
Copy link
Collaborator

No description provided.

In the JVM implementation, switch from synchronizedList to
CopyOnWriteArrayList because synchronizedList can't handle iterators.
Actually, the old implementation I did for ME-3981 used this.

The notes I wrote at that time when I implemented this in MK;

```
/**
 * From some testing on mix-contents.json (will differ based on document etc.);
 * Initial Render: 3:1 interating (reads) vs writing
 * Selection: ~10:1
 * Typing: ~5:1
 *
 * Therefore, CopyOnWriteArrayList is probably preferable to synchronizing out traversals (w/synchronizedList),
 * despite the penalty of having to copy on write (the size is only 12 anyway).
 */
```
@encryptededdy encryptededdy merged commit 77c809e into release Feb 5, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants