Skip to content

Commit 2fca572

Browse files
committed
Bump the default REPL history size to 5000
History is cheap, and 500 entries is easy to blow through in a day of REPL work. Also freshen cider-print-buffer-size's docstring, which still described the pre-#4049 per-chunk font-locking behavior; its 4K default stays - benchmarking chunk sizes against a live nREPL showed no measurable difference between 4K and 16K, and a regression at 64K.
1 parent e4a8868 commit 2fca572

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060

6161
### Changes
6262

63+
- Bump the default `cider-repl-history-size` from 500 to 5000.
6364
- Rename the REPL history browser from `cider-repl-history` to `cider-history` (command, mode and options), so its names no longer clash with the REPL's unrelated input-history settings (`cider-repl-history-file`, `cider-repl-history-size`); the old names keep working as obsolete aliases.
6465
- Color the nREPL messages buffer with theme-aware faces (`nrepl-message-faces`, eight faces inheriting from standard font-lock faces) instead of a hardcoded color list; `nrepl-message-colors` is now obsolete, but still takes precedence when customized.
6566
- Consolidate the per-buffer auto-select options into a single `cider-auto-select-buffer`, which can be `t`, `nil` or a list of the popup buffers to select (e.g. `'(error inspector)`); the old options (`cider-auto-select-error-buffer`, `cider-auto-select-test-report-buffer`, `cider-doc-auto-select-buffer`, `cider-inspector-auto-select-buffer`, `cider-cheatsheet-auto-select-buffer` and `cider-log-auto-select-frameworks-buffer`) are now obsolete, but still take precedence when customized.

lisp/cider-client.el

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,9 +490,8 @@ Set to nil for no limit."
490490

491491
(defcustom cider-print-buffer-size (* 4 1024)
492492
"The size in bytes of each value/output chunk when using print streaming.
493-
Smaller values mean smaller data chunks and faster feedback, but they also mean
494-
smaller results that can be font-locked as Clojure in the REPL buffers, as only
495-
a single chunk result can be font-locked.
493+
Smaller values mean faster first feedback, but also more messages for large
494+
results, with the associated decoding overhead.
496495
497496
The default value in nREPL is 1024."
498497
:type 'integer

lisp/cider-repl.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1775,7 +1775,7 @@ If USE-CURRENT-INPUT is non-nil, use the current input."
17751775
(t nil)))
17761776

17771777
;;; persistent history
1778-
(defcustom cider-repl-history-size 500
1778+
(defcustom cider-repl-history-size 5000
17791779
"The maximum number of items to keep in the REPL history."
17801780
:type 'integer
17811781
:safe #'integerp)

0 commit comments

Comments
 (0)