Faster go lang reflection

280 views
Skip to first unread message

Adrian Witas

unread,
Aug 9, 2021, 12:39:09 PM8/9/21
to golang-nuts
I've recently benchmarked and added go lang reflection alternative, which can go 50x faster than native  reflection, the basic idea behind is utilizing unsafe.Pointer(aStruct) + field.Offset, I wonder if there are any gotchas in some architectures ?
Here is the implementation:
https://github.com/viant/xunsafe
Reply all
Reply to author
Forward
0 new messages