JuliaLang/julia

re-evaluate/remove `Random.UnsafeView`

Open

#36,718 创建于 2020年7月17日

在 GitHub 查看
 (7 评论) (3 反应) (0 负责人)Julia (5,773 fork)batch import
good first issuehelp wantedrandomnessstdlib

仓库指标

Star
 (48,709 star)
PR 合并指标
 (平均合并 20天 6小时) (30 天内合并 157 个 PR)

描述

I just noticed the Random stdlib has an UnsafeView type for filling arrays. With the new layout optimizations, this should no longer be necessary. We should try using the normal SubArray type for this. If it's still too slow/complex, then at least the type can be made safe by holding the underlying array directly instead of a Ptr.

贡献者指南