Large Performance Update!
Also, manual Anchor outlines!
Writing a comment with
@outline Sample Text or
$Outline: Sample Text will automatically be parsed out into your outline. Of course, you can toggle the visibility of Anchor type listings in the dropdown menu.
This feature is useful for creating “bookmarks” and for labelling sections of your outline!
(I only gave two examples, but you can mark them with many syntaxes, so it should be easy to match your existing comment styles like LuaDocs. You prefix it with any of these symbols:
^ % $ @ !, you can capitalize the O or leave it lowercase, and you can chose to put
: after it.)
- Performance and internal structure improvements!
It’s quite fast now. I redid a lot of how it works, eliminating a ton of extraneous work whenever possible. I added object pooling, clever table reuse, and redid some of the logical flow to get more done at once.
These optimizations mostly affect continual performance. If you run it on a large script with a couple hundred variables, the first run will take about 60ms (which is still very fast). Subsequent runs will then benefit from the optimizations and take nearer to 20ms!