awslabs / aws-shell

An integrated shell for working with the AWS CLI.
Apache License 2.0
7.18k stars 772 forks source link

Investivate moving cached index from python to JSON #2

Closed jamesls closed 8 years ago

jamesls commented 8 years ago

Is this isn't necessary for perf, then JSON is a more suitable choice. Standard, less problems, not risk of changing between python versions, etc.

jamesls commented 8 years ago

timeit's for loading the autocomplete index:

AST:

10 loops, best of 3: 606 msec per loop

JSON:

10 loops, best of 3: 75 msec per loop

JSON it is.