dmitryikh / leaves

pure Go implementation of prediction part for GBRT (Gradient Boosting Regression Trees) models from popular frameworks
MIT License
419 stars 72 forks source link

internal/xbin I/O #13

Open sbinet opened 5 years ago

sbinet commented 5 years ago

This internal package makes quite extensive use calls to 'binary.Read'.

This is very slow as it makes heavy use of reflection. One should use the binary.ByteOrder.PutUintXX and binary.ByteOrder.UintXX methods instead.