Skip to content

Commit 1f6581f

Browse files
rfindlerrmculpepper
authored andcommitted
disable a broken responsiveness optimization
(cherry picked from commit c8bee5a)
1 parent 0e8ed01 commit 1f6581f

File tree

2 files changed

+33
-17
lines changed

2 files changed

+33
-17
lines changed

collects/drracket/private/syncheck/traversals.rkt

+4-16
Original file line numberDiff line numberDiff line change
@@ -1134,22 +1134,10 @@
11341134
(for/or ([(level id-set) (in-hash phase-to-map)])
11351135
(get-ids id-set new-id))))))))
11361136
#t))
1137-
(define max-to-send-at-once 30)
1138-
(let loop ([loc-lst loc-lst]
1139-
[len (length loc-lst)])
1140-
(cond
1141-
[(<= len max-to-send-at-once)
1142-
(send defs-text syncheck:add-rename-menu
1143-
id-as-sym
1144-
loc-lst
1145-
name-dup?)]
1146-
[else
1147-
(send defs-text syncheck:add-rename-menu
1148-
id-as-sym
1149-
(take loc-lst max-to-send-at-once)
1150-
name-dup?)
1151-
(loop (drop loc-lst max-to-send-at-once)
1152-
(- len max-to-send-at-once))]))))))))
1137+
(send defs-text syncheck:add-rename-menu
1138+
id-as-sym
1139+
loc-lst
1140+
name-dup?)))))))
11531141

11541142
;; remove-duplicates-stx : (listof syntax[original]) -> (listof syntax[original])
11551143
;; removes duplicates, based on the source locations of the identifiers

collects/tests/drracket/syncheck-test.rkt

+29-1
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,35 @@
11211121
" (super-new)\n"
11221122
"\n"
11231123
" (define/private (put t pl)\n"
1124-
" (set! tiles(remove t tiles)))))\n"))))
1124+
" (set! tiles(remove t tiles)))))\n"))
1125+
1126+
(build-rename-test
1127+
(string-append
1128+
"#lang racket/base\n"
1129+
"(define (f y)\n"
1130+
" y y y y y y y y y y y y y y y y y y y y y y y y\n"
1131+
" y y y y y y y y y y y y y y y y y y y y y y y y\n"
1132+
" y y y y y y y y y y y y y y y y y y y y y y y y\n"
1133+
" y y y y y y y y y y y y y y y y y y y y y y y y\n"
1134+
" y y y y y y y y y y y y y y y y y y y y y y y y\n"
1135+
" y y y y y y y y y y y y y y y y y y y y y y y y\n"
1136+
" y y y y y y y y y y y y y y y y y y y y y y y y\n"
1137+
" y y y y y y y y y y y y y y y y y y y y y y y y)\n")
1138+
29
1139+
"y"
1140+
"x"
1141+
(string-append
1142+
"#lang racket/base\n"
1143+
"(define (f x)\n"
1144+
" x x x x x x x x x x x x x x x x x x x x x x x x\n"
1145+
" x x x x x x x x x x x x x x x x x x x x x x x x\n"
1146+
" x x x x x x x x x x x x x x x x x x x x x x x x\n"
1147+
" x x x x x x x x x x x x x x x x x x x x x x x x\n"
1148+
" x x x x x x x x x x x x x x x x x x x x x x x x\n"
1149+
" x x x x x x x x x x x x x x x x x x x x x x x x\n"
1150+
" x x x x x x x x x x x x x x x x x x x x x x x x\n"
1151+
" x x x x x x x x x x x x x x x x x x x x x x x x)\n"))
1152+
))
11251153

11261154

11271155
(define (main)

0 commit comments

Comments
 (0)