Pixel Pedals of Tomakomai

北海道苫小牧市出身の初老の日常

2006-01-11から1日間の記事一覧

ifは後置にすべき?

Perl Style Guide for Large Scale Object Oriented Developmentより。 Situations with short, simple conditions should generally use post-ifs and post-unless'es. This saves 600 bytes of memory load overhead for the {} block context ops. ほんと…

マルチスレッドとメモリ使用量とpsコマンドと。

ふとpsコマンドを叩いたら、 $ ps auxw | grep mysql USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 823 0.0 0.0 2156 492 ? S 2005 0:00 /bin/sh /usr/bin/mysqld mysql 859 0.0 1.4 65576 13120 ? S 2005 0:01 /usr/sbin/mysqld mysql 864…