[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
#1799: [colorize egg] slow on big files
From: |
Chicken Trac |
Subject: |
#1799: [colorize egg] slow on big files |
Date: |
Tue, 22 Mar 2022 12:39:19 -0000 |
#1799: [colorize egg] slow on big files
--------------------------------+-------------------------
Reporter: curium | Type: enhancement
Status: new | Priority: minor
Milestone: someday | Component: extensions
Version: 5.3.0 | Keywords: colorize
Estimated difficulty: |
--------------------------------+-------------------------
When trying to colorize big files such as chicken's runtime.c, according
to chicken profiler, 96% of time is spent on append at line 296. One
enhancement could be to cons tokens and then return the reversed result.
Time to colorize runtime.c goes from 10m to 02s.
Another thing which I would like is to have htmlize exported: if someone
is using html-colorize, they could need that function to handle a case
where the text doesn't need colorization.
Tentative diff attached.
--
Ticket URL: <https://bugs.call-cc.org/ticket/1799>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.
- #1799: [colorize egg] slow on big files,
Chicken Trac <=