[対象: ä¸ãä¸ç´] åã®ããã°ã§ã¯ã¦ãæ°ããã¡ã°ãå¤ãã®ã¯ã¦ã§ããã¼ã¸ãé«éåããTIPSã解説ããè¨äºã§ãï¼ã¾ã èªãã§ãªã人ã¯ãã²èªãã§ãã ããï¼ï¼ã ãã®è¨äºã§ã¯é«éåå ¨è¬ãæ±ã£ã¦ãã¾ããããä»æ¥ã®è¨äºã§ã¯JavaScriptã«çãçµã£ã¦è¡¨ç¤ºé度ãã¹ãã¼ãã¢ããã§ããæ½çã6ã¤ç´¹ä»ãã¾ãã ãã¨ãã¨ã¯Search Engine Peopleããã°ã®Optimizing JavaScript for Better Web Performanceã§èª¬æããã¦ãããã®ã§ãã è¨äºä½è ã®Joydeep Debï¼ã¸ã§ã¤ãã£ã¼ãã»ããï¼æ°ã«åã®ããã°ã§ã®è»¢è¼è¨±å¯ããããã¾ãã (Thanks, Joydeep!)ã éä¸ã®ç¿»è¨³ã§ã¯ãªããæ¸ããã¦ããå 容ããã¨ã«åã®è¨èã§è§£èª¬ãã¦ããã¾ãã 1. HTTPãªã¯ã¨ã¹ãåæ¸ã®ããã«JavaScriptãã¡ã¤ã«ã1ã¤ã«çµ±åãã ã¦ã§ããã¼ã¸ã®è¡¨ç¤ºãé«éå
MySQLã«ã¯ãã¼ã¿ãã¼ã¹ã®æé©åãã¼ã«ãå«ã¾ãã¦ãã¾ãã ããã§æ¸ãã¦ããå 容ã¯ç§ã®èªèä¸è¶³ãæä½ãã¹ããã¼ãã¦ã§ã¢é害ãªã©ã«ããããã¼ã¿ãç ´å£ããå±éºãããã¾ãã®ã§äºåã«å¿ ããã¼ã¿ãã¼ã¹ã®ããã¯ã¢ããããã¦ããã¦ãã ããã
PostgreSQL ã SQLite ã§ã¯ VACUUM æï¼ MySQL ã§ã¯ OPTIMIZE TABLE æ§æãç¨ã㦠ãã¼ã¿ãã¼ã¹ã®ãã¼ãã«ãæé©åãããã¨ãã§ãã¾ãã ç¹ã«ãã¼ã¿ã¹ãã¬ã¼ã¸ã«ãã¼ã¿ãã¼ã¹ã使ç¨ãã¦ããããã°ã·ã¹ãã ã§ã¯ï¼ ã¹ãã ã³ã¡ã³ããã¹ãã ãã©ãã¯ããã¯ãåé¤ãããä¸ã¤ã®ã¨ã³ããªãä½åº¦ãç·¨éãããã¨ï¼ ã©ããã¦ããã¼ã¿ãã¼ã¹ãæçåãæãç°å¢ã«ããã¾ãã MySQLã¯å®æçã«VACUUMããå¿ è¦ããªãã¨ããã®ãã¦ãªã ã£ãã¨æãã®ã§ããããã¯ãé·å¹´ä½¿ã£ã¦ããã¨ãã©ã°ã¡ã³ããããã§ãããï¼ åºæ¬çã«ä½¿ãã£ã±ãªãã§ä½ããã¦ããªãã®ã§ãä¸å¿ãã£ã¦ã¿ã¾ããã /var/db/mysql ã« optimize.sql ã¨ããååã§ã USE `ï¼MTã®ãã¼ã¿ãã¼ã¹åï¼`; OPTIMIZE TABLE `mt_as_ua_cache`; OPTIMIZE TAB
ãªãã¡ã¯ã¿ãªã³ã°ã¨ã¯ãã½ããã¦ã§ã¢ã®å¤å´ã®æåãå¤æ´ããã«ãä¸èº«ãå¤æ´ãããã¨ã§ãã ä¼æ¥åãã¢ããªã±ã¼ã·ã§ã³ã§ã¯ãä¿å®ãå質ã管çããæéè¦ãã¾ãã ãã£ã¦ãä»äººã«ãããã«ããããã°ã©ã ãåå©ç¨æ§ãæ¡å¼µæ§ã®ç¡ãããã°ã©ã ã¯æé©åããå¿ è¦ãããã¾ãã ãªãã¸ã§ã¯ãæåãå¦ç¿ããå ´åãé£ããçè«ãå ã«å¸åãããã¨ãã¦ãæ念ããå ´åãå¤ãã®ã§ããããªãã¡ã¯ã¿ãªã³ã°ãç解ãããã¨ã§ããªãã¸ã§ã¯ãæåã®ç価ãè¦ãã¦ãã¾ãã ï¼ï¼ã¡ã½ããåã®å¤æ´ ã¡ã½ããåã¯ãã®ã¡ã½ããã®æ©è½ãæ確ã«èª¬æã§ããªãã¨ããã¾ããã ã§ãªãã¨ããã®ã¡ã½ããã使ããã¦ããå ´é¢ã§ããã®ã¡ã½ãããä½ãè¡ã£ã¦ããã®ã ãããã«ãããä¿å®ç®¡çã®å¦¨ãã«ãªãã¾ãã <?php class Food { private $name; public function getFood() { return $this->name; } pu
ããã¯ãããã便å©ã»ã»ã»ã zbugsã使ãã°ãã¯ã³ã¯ãªãã¯ã§ãããããµã¤ãã®CSSããã³JavaScriptãå§ç¸®ãã¦ãããããã ã ãã¡ããä½ãã¼ã»ã³ãå§ç¸®ããããã¨ããã©ã®ãã¡ã¤ã«ãã©ãã ãå°ãããªã£ããã¨ãã£ããã¨ã®è©³ç´°ãæãã¦ãããã ããã«å§ç¸®ãããã¡ã¤ã«ç¾¤ãã¾ã¨ãã¦ãã¦ã³ãã¼ããããã¨ãå¯è½ã ã ãµã¤ããã¤ãã£ããã¨ã«ããããªãã¹ãã¼ãã¢ãããå³ãã®ã«ããã ãããã¤ã³ã¿ã¼ãã§ã¼ã¹ãç´ æµã§ã·ã³ãã«ãªã®ã§ä¸åº¦è©¦ãã¦ã¿ãã¨ããã§ããã
ã/proc/(pid)/statusãã®ã¡ã¢ãªãµã¤ãºããã¡ã¢ãªæ¶è²»éããªã¹ãã¢ããããã¹ã¯ãªãããæºåããã ããµã¼ãï¼ã¤ã³ãã©ãæ¯ããæè¡ãã«è¼ã£ã¦ãããid:naoyaããã®å ±æãã¦ããã¡ã¢ãªã®ãµã¤ãºãè¨ç®ããã¹ã¯ãªããã¨ãããã¦ãã¨ã¯ã»ã«ã«è½ã¨ãè¾¼ãã§ãã«ããã«ãã¨è¨æ¸¬ãã¦ã¿ãã http://d.hatena.ne.jp/naoya/20080212/1202830671 http://archive.linux.or.jp/JM/html/LDP_man-pages/man5/proc.5.html [www]~ $ cat memory_size.sh #!/bin/sh GREP="/bin/grep" AWK="/bin/awk" PRINTF="/usr/bin/printf" if [ $# -lt 1 ]; then echo "usage: ${0} [pid .
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}