¥È¥Ã¥× «Á°¤ÎÆüµ­(2006-04-13) ºÇ¿· ¼¡¤ÎÆüµ­(2006-04-15)» ÊÔ½¸

¤Ï¤¸¤á¤Æ¤Î¤Ë¤­

¤³¤³¤Î°ÌÃÖÉÕ¤±

2004|11|
2005|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|01|02|03|04|05|06|07|08|09|10|11|12|
2013|01|02|03|04|05|06|07|08|09|10|11|12|
2014|01|02|03|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|08|09|10|11|12|
2016|01|02|03|04|05|06|07|08|09|10|11|12|
2017|01|02|03|04|05|06|07|08|09|10|11|12|
2018|01|02|03|04|05|06|07|08|09|10|11|12|
2019|01|02|03|04|05|06|07|08|09|10|11|12|
2020|01|02|03|04|05|06|07|08|09|10|11|12|
2021|01|02|03|04|05|06|07|08|09|10|11|12|
2022|01|02|03|04|05|06|07|08|09|10|11|12|
2023|01|02|03|04|05|06|07|08|09|10|11|12|
2024|01|02|03|

ToDo:


2006-04-14

_ Symbol vs String

º£ÅÙÄ´¤Ù¤ë¤¿¤á¤Î¥á¥â¡£

i@u ~/src/ruby-1.8.1> time ruby -e 'h={}; for i in 0...1000000; h["str"]=i; end'
ruby -e 'h={}; for i in 0...1000000; h["str"]=i; end'  2.21s user 0.02s system 99% cpu 2.252 total
i@u ~/src/ruby-1.8.1> time ruby -e 'h={}; for i in 0...1000000; h[:sym]=i; end'
ruby -e 'h={}; for i in 0...1000000; h[:sym]=i; end'  1.27s user 0.00s system 100% cpu 1.267 total
i@u ~/src/ruby-1.8.1> ruby -e 'p "str".hash; p "str".object_id'
987610256
-604106804
i@u ~/src/ruby-1.8.1> ruby -e 'p :sym.hash; p :sym.object_id'
2627854
2627854
i@u ~/src/ruby-1.8.1> ruby -e 'p :a.hash; p :b.hash; p :c.hash'
2627854
2629902
2631950

¤³¤ì¤À¤È¥Ï¥Ã¥·¥å¤Î¥Ò¥Ã¥ÈΨÍî¤Á¤½¤¦¤Êµ¤¤â¤¹¤ë¤¬¡£ Í×¥Á¥§¥Ã¥¯¡£

(20:49)

_ ¤³¤ì¤Ï¤Ö¤Ä¤«¤ê¤½¤¦¤À¤±¤É

#define FIND_ENTRY(table, ptr, hash_val, bin_pos) do {\
    bin_pos = hash_val%(table)->num_bins;\
    ptr = (table)->bins[bin_pos];\
    if (PTR_NOT_EQUAL(table, ptr, hash_val, key)) {\
        COLLISION;\
        while (PTR_NOT_EQUAL(table, ptr->next, hash_val, key)) {\
            ptr = ptr->next;\
        }\
        ptr = ptr->next;\
    }\
} while (0)

¤Þ¤¡ Symbol ¤Î¿ô¤Ê¤ó¤Æ¾¯¤Ê¤¤¤ó¤À¤«¤é ¥Ï¥Ã¥·¥å¤Î¥­¡¼¤Ï Symbol ¤¬Àµ²ò¤Ê¤ó¤À¤í¤¦¤Ê¡£

(20:52)

_ HE

¥Ç¥Ð¥Ã¥°¥Ó¥ë¥É¤Î¤ß¡£

estmaster: estraier.c:5547: est_aidx_attr_put: Assertion `db && id >= 0 && vbuf && vsiz >= 0' failed.
zsh: abort (core dumped)  estmaster start casket
#0  0x080fcd41 in raise ()
#1  0x080bf910 in abort ()
#2  0x080bb1d6 in __assert_fail ()
#3  0x08079f4f in est_aidx_attr_put (db=0x818e1d0, id=-1,
    vbuf=0x81ad440 "mod_estraier", vsiz=12) at estraier.c:5547
#4  0x0806e2aa in est_db_edit_doc (db=0x818d9f8, doc=0x81a4320)
    at estraier.c:1946
#5  0x0808257d in est_mtdb_edit_doc (db=0x815d430, doc=0x81a4320)
    at estmtdb.c:193
#6  0x08056ff4 in sendnodecmdeditdoc (clsock=32, req=0xb5a43194,
    node=0x81a4160) at estmaster.c:3391
#7  0x08050020 in sendnodedata (clsock=32, req=0xb5a43194, user=0x815d1e8,
    path=0x815d0d6 "web") at estmaster.c:2037
#8  0x0804d5a3 in communicate (targ=0x81e0360) at estmaster.c:1545
#9  0x0808d402 in start_thread ()
#10 0x080f76ce in clone ()

doc->id ¤¬ -1 ¤Ë¤Ê¤Ã¤Æ¤ë¡£ ¤Þ¤À¥»¥Ã¥È¤µ¤ì¤Æ¤Ê¤¤ or ɬÍפʤ¤¡¢¤¿¤Ö¤ó¡£ º®Æþ¤Ï 1.2 ·Ï¤Î est_aidx_attr_put ¤À¤È»×¤¦¡£

(22:29)

¤ªÌ¾Á°:
E-mail:
¥³¥á¥ó¥È:
¿ÍÀ¸¡¢±§Ãè¡¢¤¹¤Ù¤Æ¤ÎÅú¤¨
ËÜÆü¤Î¥ê¥ó¥¯¸µ

Á° 2006ǯ
4·î
¼¡
Æü ·î ²Ð ¿å ÌÚ ¶â ÅÚ
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
1.shinh(2006-04-26 22:42) 2.shinh(2006-04-26 22:34) 3.shinh(2006-04-26 22:33)
search / home / index

Á´¤Æ¥ê¥ó¥¯¥Õ¥ê¡¼¤Ç¤¹¡£ ¥³¡¼¥ÉÊҤϼ«Í³¤Ë»ÈÍѤ·¤Æ¤¤¤¿¤À¤¤¤Æ¹½¤¤¤Þ¤»¤ó¡£ ¤½¤Î¾¤Î¤â¤Î¤ÏGPL°·¤¤¤Ç¤¢¤ì¤Ð¤¢¤é¤æ¤ë»ÈÍѤ˴ؤ·¤Æʸ¶ç¤Ï¸À¤¤¤Þ¤»¤ó¡£ ¤Ê¤Ë¤«¤¢¤ì¤Ð²¼µ­¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ø¡£

shinichiro.hamaji _at_ gmail.com / shinichiro.h