-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove {beginning end}-of-line; somewhat optimize paragraph numbers
From racket/expeditor#10 it sounds like the "traditional" approach isn't desirable after all; remove it. Make the paragraph numbering "moderately" optimized: On do-udpate! we invalidate it, and then the paragraph methods recalculate it on-demand. This is a mid point on design spectrum between "naively scan from 0 every single time" and "do some minimal rebuild on every update". Note that I'm not 100% confident about the concurrency safety. But I'm committing anyway, for now, because I plan to take hard look at concurrency for the class, soon, including this as well as the potential for update generations arriving on command threads out of order and needing to be queued something like TCP packets.
- Loading branch information
1 parent
128edc7
commit 31455e7
Showing
2 changed files
with
46 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters