yukithm / json2csv

Convert JSON to CSV (go package and command line tool)
MIT License
83 stars 30 forks source link

jsonpointer: allocate strings replacers at init #9

Closed dolmen closed 4 years ago

dolmen commented 4 years ago

Allocate string.Replacer used for escaping/unescaping token at init time instead of every time a token is escaped/unescaped.

This makes a huge performance difference.

yukithm commented 4 years ago

Thank you for your pull request!