摘要: #!/usr/bin/perluse List::Util qw(first);use Time::Local;$minutes = @ARGV ? shift @ARGV : 2;open MYSQL_CONF, "</etc/my.cnf" or die "cant find my.conf";$_ = first { /^\s*log-slow-queries\s*=\s*([\w.\/]+)/ } <MYSQL_CONF> or die "cant find log-slow-qureis";/=\s*([\ 阅读全文
posted @ 2013-01-29 14:17 Samurail 阅读(453) 评论(0) 推荐(0) 编辑
摘要: Data alignment: Straighten up and fly rightAlign your data for speed and correctnessJonathan Rentzsch (jon.dw@redshed.net), President, Red Shed SoftwareSummary: Data alignment is an important issue for all programmers who directly use memory. Data alignment affects how well your software performs, a 阅读全文
posted @ 2013-01-29 10:11 Samurail 阅读(433) 评论(0) 推荐(0) 编辑