全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
2020 2
2016-04-29
R代码性能改善
how to speed up R code

Contents
1 Your computer 3
1.1 HHD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 RAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3 CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4 Monitoring your computer . . . . . . . . . . . . . . . . . . . . 7
2 One R instance, one core 13
2.1 Writing your code right . . . . . . . . . . . . . . . . . . . . . 16
2.2 What part of my code is slow? . . . . . . . . . . . . . . . . . 20
2.3 Writing part of your code in C . . . . . . . . . . . . . . . . . 25
3 Using the others cores of your computer 35
3.1 Several R instances, one core for each . . . . . . . . . . . . . 35
3.2 One R instance, several cores . . . . . . . . . . . . . . . . . . 41
3.2.1 pnmath . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3.2.2 pnmath0 . . . . . . . . . . . . . . . . . . . . . . . . . 43
3.2.3 doSMP . . . . . . . . . . . . . . . . . . . . . . . . . . 44
3.2.4 doMC . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
3.2.5 parallel and snow . . . . . . . . . . . . . . . . . . . . . 48
4 Using R on a cluster 49
4.1 Unix commands . . . . . . . . . . . . . . . . . . . . . . . . . . 52
4.2 First example: Hmem . . . . . . . . . . . . . . . . . . . . . . 55
4.3 Green . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
4.4 Where is my cluster? . . . . . . . . . . . . . . . . . . . . . . . 62


附件列表

how_to_speed_up_R_code.pdf

大小:3.08 MB

只需: 3 个论坛币  马上下载

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2016-4-29 20:44:53
谢谢楼主,好人!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-4-30 08:39:51
xenron 发表于 2016-4-29 20:40
R代码性能改善
how to speed up R code

好的?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群