浏览代码
* Garbage collection optimisations: - Changed a few IEnumerable instances to IReadOnlyList. This avoids some unnecessary GC allocs that cast the Lists to IEnumerables. - Moved cdf allocation outside of the loop to avoid unnecessary GC allocation. - Changed GeneratorImpl to use plain float and int arrays instead of Array during generation. This avoids SetValue performing boxing on the arrays, which eliminates an awful lot of GC allocs. * Convert InferenceBrain to use IReadOnlyList to avoid garbage creation./develop-generalizationTraining-TrainerController
Vincent-Pierre BERGES
6 年前
当前提交
eefe0d6b
共有 6 个文件被更改,包括 20 次插入 和 15 次删除
正在加载...
Reference in new issue