摘要:
#!/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*([\ 阅读全文
摘要:
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 阅读全文