Fansite
- 「國際影業」,這一年你做了什麼? Quote: 很多大型叮噹支持者的網站還是繼續關閉
HK
- 學歷歧視論:讀書黎做乜? Quote: 社會上是存在學歷歧視的,但不是用在職位上。例如你一開始就不願與某人做朋友,因為他無學位,所以認定
ZFS's 'raidz' and 'raidz2' storage methods are single and dual parity,but they are not exactly the same as normal RAID-5 and RAID-6. Thedifference is in how each handles partial stripe writes, such as whathappens when you write only a small amount to disk.
In a conventional RAID implementation, a partial write to a stripe alsohas to update the parity, which means additional disk IO (at least adisk read and a disk write). Even if this
In yesterday's entry , I mentioned that Iwas surprised by the relative performances of my three reimplementationsof the .find() string method.
The src[i:].startswith(sub) version was the slowest, and why isobvious in hindsight: it's summed up clearly in the first bit, where wecreate a big new string ( src[i:] ) on every iteration of the loop. Nowonder it's slow; creating big strings is slow in general, because

As a followup to my entry on the two sorts of languages , I decided to actually tryimplementing the string .find() method in Python to see how muchslower it is. The Python version uses the brute force C style approach,roughly:
for i in range(0, len(src)-len(sub)+1): if src[i:i+len(sub)] == sub: return ireturn -1
I actually did three versions, each with a different
Fansite
HK
搞文學的人最怕重複,重複是因為被扭曲和無回應。扣帽子和假溝通的麻煩在於,它令所有的東西重複。不少人search「spin doctor,spin doctor」到此,大概很難接受世上真有人這樣姓屈,光天化日把人家沒說過的話塞到人家口裡。 spin doctor, spin doctor