Time for the monthly Knud batch, only 88 messages in February.
When I stated that the AddHistory() command is slow, because it took my macro about half an hour to fully fill the history buffer (65535 values), you replied with a macro of your own that does it in about a minute.
In a test environment I threw away tsehist.dat, ran your macro, and then examined TSE buffer 6, where the history lists are maintained.
Your macro had added only 127 instead of 65535 values to TSE's history lists, hence the ~ 1 minute duration.
Aside, I recommend this tool for examining buffer 6:
https://ecarlo.nl/tse/ToolsAndExtensions.html#Hidden
Unlike Semware's tool it lets you browse a copy of the buffer, making it impossible to accidentally modify the real history buffer.
Carlo
On Wed, Feb 18, 2026 at 2:41 PM Carlo Hogeveen <mailto:
t...@ecarlo.nl> wrote:
Sammy,
The context is, that I attempt to write an extension that will fix, that for concurrently opened TSE sessions only the history lists of the last closed session are remembered for future TSE sessions.
My first attempt was doing this using the macro language's history commands, but they are too slow:
I am currently running a test where all history lists are empty, and filling them to the max (65535 entries) with AddHistoryStr() is going to take in the order of half an hour.
I therefore contemplate hacking the history buffer directly.
My question is, will this corrupt TSE's functionality?
In other words, does TSE maintain meta data for its history buffer?
For example,
- does TSE also maintain an index to the history lists,
- or does NumHistoryItems() circumvent recounting list entries in the historybuffer?
Carlo
--
---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailto:
semware%2Bunsu...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailto:
semware+u...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/semware/CANo7bXSZfuvdw2GB4LNJNh_6F9sHu%2BH_rRSAqcdrs-f%3D65S-4A%40mail.gmail.com?utm_medium=email&utm_source=footer.