Closed ericlagergren closed 8 years ago
Additionally, a []byte
case could be added that returns bytes.NewReader(x), nil
to handle []byte
for no additional cost.
Please submit pull requests for code improvements. Golog was one of my first Go projects, so there's a lot of room for similar changes. I'm glad to consider them all.
This line can be simplified down to:
Testing it locally, this change added a 2x speedup (4.91671ms -> 2.944214ms) for creating a NewMachine. Additionally, this drops the need to include the reflection library.