awk icon indicating copy to clipboard operation
awk copied to clipboard

PENC optimization possibility ?

Open mogando668 opened this issue 2 years ago • 0 comments

less of an "issue" more like a suggestion

since your code already queries the true-false array of _penc[ ],

why not directly store the post-encoded view inside _penc[ ]

e.g.

         _penc["}"] = "%7D"
         _penc["h"] = "h"
         _penc[" "] = "+"

this way it saves a lot of time by not having to query _penc[ ] THEN query _ord[ ] THEN run its output via sprintf()

mogando668 avatar Jul 26 '23 10:07 mogando668