Repository navigation
Pointer scalars - #15
Conversation
|
Awesome, thanks. Out of curiosity, do you see any difference in the benchmarks? |
|
Didn't run the benchmarks actually. I can do a before and after comparison later. |
|
I ran a benchmark locally with this change and the tip of master. Overall it looks like a small improvement in performance. I also ran this with With nested structs having the largest negative impact. |
|
@jasdel Thanks. Does this overall approach look good to you? |
|
The change looks good for this test case which is great and it does fix this bug with |
|
@jasdel This specifically solves the issue mentioned in that PR. |
|
Alright, I'll go ahead and merge this in, and then pick up any additional work. |
Fixed the length() function to work with a slice of structs. The entire functions.go will need an audit to update the code to not assume slice of empty interface. Related: #15.
This is a failing test for the cause of the issue mentioned in aws/aws-sdk-go#457 and #14.
I've added a potential implementation that fixes the tests, but I'm not super happy with having to type switch against all the basic scalars in Go.