qitab / cl-protobufs

Common Lisp protocol buffer implementation.
MIT License
83 stars 17 forks source link

Use switch-case for both conversions (`key-to-int` and `int-to-key`) when the size of the enum is 10 or less, and use hash tables for both when the size is larger than 10. Switch-case for small enums (less memory usage) and hash tables for larger enums (faster lookups) #415

Closed copybara-service[bot] closed 1 year ago

copybara-service[bot] commented 1 year ago

Use switch-case for both conversions (key-to-int and int-to-key) when the size of the enum is 10 or less, and use hash tables for both when the size is larger than 10. Switch-case for small enums (less memory usage) and hash tables for larger enums (faster lookups)