-
Notifications
You must be signed in to change notification settings - Fork 4
refactoring plan about improve the respond ability #223
Copy link
Copy link
Closed
Labels
improveno new functionality, but improve current implementationno new functionality, but improve current implementation
Description
Is your feature request related to a problem? Please describe.
The thread by default created with current-thread-custodian, which will slow down the whole DrRacket, particular if I'm working on some large project (not really large in normal scale, but racket level large).
The fundamental problem is
sauron/collect/record-maintainer.rkt
Line 79 in fb2eaa9
| (set! cached-record (collect-from file-path)))] |
collect-from is computation intensive operation, move it into a place worker seems reasonable.
Describe the solution you'd like
- Make a place module
- Create 4 workers via place module, and collect-from will be invoked via worker
- When worker complete the job, send a message back
- main-thread needs to forward result to correct record-maintainer
Describe alternatives you've considered
No idea
Additional context
I found (place-message-allowed? (make-record)) is #f, the reason are fields that involve (make-interval-map).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
improveno new functionality, but improve current implementationno new functionality, but improve current implementation