Github talanc / vlisp-profiler?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I wrote a pretty good sized lisp project that reads a survey data collector's raw data output and (among other things) creates at least one block insertion in the drawing for each shot recorded by the data collector, inserts utility symbols, tree symbols, and some other things. The inserts are dynamic, attributed blocks with point number, description and elevation attributes.
The program works fine, but it starts out blazing fast and slows down incrementally with each line of input, until at the end of a 300-point run, it's really limping along. Nothing is recursive, and the only thing that gets longer/larger is the list of used point numbers saved and updated with each data point as the variable 'ptnolst'. I can't imagine this is the culprit:
(if (member (atoi ptno) ptnolst)
nil
(setq ptnolst (cons (atoi ptno) ptnolst))
)
but if it isn't, I haven't a clue what else could be slowing the program down the longer it runs.
SO -
I started googling "vlisp program profiler and found a Github project belonging to Thomas Copeland called talanc/vlisp-profiler. It has an MIT license. It hasn't been updated since 2019, but I'm wondering: is anyone here is familiar with it? It purports to run on AutoCAD 2011+.