Skip to content

Commit

Permalink
Add some TODOs around shortening the program code before codegen.
Browse files Browse the repository at this point in the history
There's sometimes duplicate strings and regexp we can elide.
  • Loading branch information
jaqx0r committed Nov 16, 2021
1 parent a8765c4 commit aecf6c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,8 @@ Const-fold identity functions.


Both tailer and logstream probably don't need to do URL parsing. Tailer could do it on the log path patterns before filling up the poll patterns list. Non-globs don't need repolling, and any with a scheme can already be constructed by TailPattern.


Trim unused string and regexp constants, as .e.g /s/ && 1 gets optimised away.

Collapse duplicate string and regexp constants.

0 comments on commit aecf6c8

Please sign in to comment.