yupbank

yupbank

V2EX member #7383, joined on 2011-03-27 10:33:00 +08:00
yupbank's recent replies
use case of Normal and Old.
to retain change history and able to mutate a dictionary base object in rdd

```python
data = [dict(sound=1, counting=2, c=4) for _ in xrange(1000000)]

data_rdd = sc.parallelize(map(Normal, data))
#sc is pyspark context

def function(normal):
new_normal = normal.mutate('counting', 3).mutate('sound', 2)
#still do some calculation with normal [ 1 ]
#even do something with the change history through normal.son.current. normal.son.son.current [ 2 ]
return new_normal

data_rdd.map(function).collect()
```
----
但有些 use case 不会发生[ 1 ],[ 2 ]两种情况。 那样 gc 直接回收 old 。 因为在 spark 集群跑,所以一点点的性能优势可以放大好多。。

我想改进代码可读性。。毕竟直接 inplace 的改变对象的__class__ 好粗暴

(之前的设计不是我搞得。。
May 10, 2016
Replied to a topic by fleuria 酷工作 [北京][知乎] 招聘效率开发工程师, 15~30k
f 叔还在 zhihu 呢啊
楼主从哪接的外包啊...

偶尔也想找点外包来做哎
Nov 25, 2014
Replied to a topic by yupbank 问与答 现在外包做 app 怎么收费啊?
@xjtlujoe 要是做一个带聊天,带设计的app大概要多少钱啊...
stdyun吧,不过如果网站不备案还想用自己的域名,任何一家都不靠谱

国家开个大会,就会抓一次,不然就得打游击...
Mar 11, 2013
Replied to a topic by a7898585 程序员 推荐个好用的ocr软件呗
gocr。
是吧。。
stdyun,速度快,客服好。
Feb 6, 2013
Replied to a topic by leofml Vim 关于vim自动补全python的求助
。。。。哥,这个应该是pycharm的截图吧?
人家花几百块钱一年买来的,你想找个插件就搞到这么流弊的效果,有点不太现实吧?

ps: try, ropevim?
还有5G的可用硬盘空间,最直接的方法是,再现在硬盘上,用小刀再刻个35G新空间出来。一切问题就解决啦
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3133 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 13:23 · PVG 21:23 · LAX 06:23 · JFK 09:23
♥ Do have faith in what you're doing.