qitab / cl-protobufs

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

hash-map handling instead of switch case for enum type #412

Closed copybara-service[bot] closed 1 year ago

copybara-service[bot] commented 1 year ago

hash-map handling instead of switch case for enum type

Implement hash-table instead of switch case to handle enum type in make-enum-conversion-forms function

The purpose is to improve search time complexity from O(n) to O(1) and prevent the kill of the compiler in case of SBCL