CodeFest Akihabara

本日はCodeFest Akihabaraに参加しています。

  • 深追いTODO (thanks to akrさん)
    • sendfile(2)のパフォーマンス測定
    • splice(2), tee(2)によるファイルコピー実装
    • epollは何故selectよりパフォーマンスが出るのか?
  • gc周りをいじってて見付けた埃。
Index: storage-gc.c
===================================================================
--- storage-gc.c	(revision 3657)
+++ storage-gc.c	(working copy)
@@ -325,7 +325,7 @@
         l_heaps_lowest = &heap[0];
 
     /* link in order */
-    for (cell = &heap[0]; cell < &heap[l_heap_size - 1]; cell++)
+    for (cell = &heap[0]; cell < &heap[l_heap_size]; cell++)
         SCM_RECLAIM_CELL(cell, cell + 1);
     SCM_RECLAIM_CELL(cell, l_freelist);
     l_freelist = (ScmObj)heap;

&heap[0]ってheapって書けば良いような気がするんですけど、これって何か意図とか有るんですかね? > YamaKenさん