emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CC Mode -> Tree sitter challenge


From: Theodor Thornhill
Subject: Re: CC Mode -> Tree sitter challenge
Date: Sat, 05 Nov 2022 17:38:00 +0100

Hi again, Eli!

>>
>>Interesting. My guess is that there are still some improvement possible in 
>>the indent-region code, considering that part of treesit.el is quite new.
>>
>>What do you think, Yuan? Any thoughts?
>>
>>Anyways, I'll keep working on this and see how far I get next coming weeks. 
>>At least in performance it seems I have a good thing going here :-)
>>
>
> Thinking of it, some of the indentation questions isn't compiled. I'll run it 
> again later when they are compiled as well :-)
>

Yes, that was the issue.  Now the scores are as follows:


;; C-MODE
;; scroll-up-benchmark
;; 1: GCs: 402 Elapsed time: 17.499269 seconds
;; 2: GCs: 415 Elapsed time: 17.789382 seconds

;; scroll-up-by-40-benchmark
;; 1: GCs: 420 Elapsed time: 19.183639 seconds
;; 2: GCs: 420 Elapsed time: 19.377480 seconds

;; xdisp-eob-benchmark 100
;; 1: (40.992420494 1708 16.708356162)
;; 2: (40.630712261 1711 16.361947911999998)

;; xdisp-eob-benchmark 1
;; 1: (0.482883063 21 0.19676500600000002)
;; 2: (0.478595514 21 0.19573110300000002)

;; scroll-up-insert-quote-benchmark
;; 1: GCs: 558 Elapsed time: 41.747822 seconds
;; 2: GCs: 557 Elapsed time: 41.976805 seconds

;; xdisp-indent-benchmark
;; 1: (14.323358754000001 898 7.6331590500000015)
;; 2: (14.027956779 900 7.438876509)
;; 3: (13.631917978 904 7.006082581)


;; C-TS-MODE
;; scroll-up-benchmark
;; 1: GCs: 21 Elapsed time: 6.997570 seconds
;; 2: GCs: 27 Elapsed time: 7.239952 seconds

;; scroll-up-by-40-benchmark
;; 1: GCs: 30 Elapsed time: 8.869021 seconds
;; 2: GCs: 29 Elapsed time: 9.076617 seconds

;; xdisp-eob-benchmark 100
;; 1: (15.083917789 20 1.1350005760000001)
;; 2: (15.213992551999999 21 1.121564519)

;; xdisp-eob-benchmark 1
;; 1: (0.19189711499999998 1 0.011011572999999997)
;; 2: (0.185749092 1 0.011173242)

;; scroll-up-insert-quote-benchmark
;; 1: GCs: 29 Elapsed time: 15.450495 seconds
;; 2: GCs: 29 Elapsed time: 12.168593 seconds

;; xdisp-indent-benchmark
;; 1: (1.253069432 12 0.4284672389999997)
;; 2: (1.35523601 12 0.47415286799999734)
;; 3: (1.416845475 12 0.49072914899999986)

>
>>Theo
>>

-- 
Theo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]