{"id":1892,"date":"2017-11-28T15:01:58","date_gmt":"2017-11-28T06:01:58","guid":{"rendered":"https:\/\/blog.ymyzk.com\/?p=1892"},"modified":"2017-11-28T15:17:44","modified_gmt":"2017-11-28T06:17:44","slug":"isucon7-final","status":"publish","type":"post","link":"https:\/\/blog.ymyzk.com\/2017\/11\/isucon7-final\/","title":{"rendered":"ISUCON7 \u672c\u9078\u3067\u5b66\u751f\u67a01\u4f4d\u306b\u306a\u308a\u307e\u3057\u305f"},"content":{"rendered":"
\u30c1\u30fc\u30e0ML\u3068\u3057\u3066 @ishiy1993<\/a> \u30682\u4eba\u3067\u00a0ISUCON7<\/a> \u306e\u672c\u9078\u306b\u51fa\u3066\uff0c\u5b66\u751f\u67a0\u306e1\u4f4d (\u5168\u4f53\u306e7\u4f4d) \u306b\u306a\u308a\u307e\u3057\u305f\uff0e\u4f7f\u7528\u3057\u305f\u8a00\u8a9e\u306f Python \u3067\uff0c\u6700\u7d42\u30b9\u30b3\u30a2\u306f 19,172 \u3067\u3057\u305f\uff0e\u6e80\u8db3\u306e\u3044\u304f\u30b9\u30b3\u30a2\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u304c\uff0c\u6211\u3005\u304c\u4eca\u6301\u3063\u3066\u3044\u308b\u529b\u306f\u51fa\u3057\u5207\u308c\u305f\u304b\u306a\u3042\u3068\u601d\u3063\u3066\u3044\u307e\u3059\uff0e<\/p>\n <\/p>\n \u8fd1\u3044\u3046\u3061\u306b\u554f\u984c\u306e\u8a73\u7d30\u304c\u516c\u958b\u3055\u308c\u308b\u3068\u601d\u3046\u306e\u3067\u7c21\u5358\u306b\u307e\u3068\u3081\u308b\u3068\uff0c\u4eca\u56de\u306e\u304a\u984c\u306f\u30af\u30c3\u30ad\u30fc\u30af\u30ea\u30c3\u30ab\u30fc\u3092\u8907\u6570\u4eba\u3067\u30d7\u30ec\u30a4\u3067\u304d\u308b\u3088\u3046\u306a\u3082\u306e\u3067\u3057\u305f\uff0e\u901a\u4fe1\u306f\u57fa\u672c\u7684\u306b WebSocket \u3067\u884c\u308f\u308c\u308b\u3068\u3044\u3046\u7279\u5fb4\u304c\u3042\u308a\u307e\u3057\u305f\uff0e<\/p>\n \u8ffd\u8a18: GitHub \u3067\u53c2\u8003\u5b9f\u88c5\u3084\u30d9\u30f3\u30c1\u30de\u30fc\u30ab\u30fc\u3092\u542b\u3080\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u516c\u958b\u3055\u308c\u307e\u3057\u305f<\/a><\/p>\n \u4e88\u9078\u306f\u8ad6\u6587\u7de0\u3081\u5207\u308a\u76f4\u5f8c\u306b\u51fa\u5834\u3057\u305f\u305f\u3081\u3042\u307e\u308a\u6e96\u5099\u3092\u305b\u305a\u306b\u53c2\u52a0\u3057\u3066\u3057\u307e\u3063\u305f<\/a>\u306e\u3067\u3059\u304c\uff0c\u672c\u9078\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3053\u3068\u3092\u4e8b\u524d\u306b\u6e96\u5099\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3057\u305f\uff0e<\/p>\n \u4eca\u56de\u306e\u554f\u984c\u306f WebSocket \u304c\u4e3b\u3060\u3063\u305f\u306e\u3067\uff0c\u4e8b\u524d\u306b\u6e96\u5099\u3057\u305f\u30d7\u30ed\u30d5\u30a1\u30a4\u30e9\u304c\u5f79\u306b\u7acb\u305f\u306a\u3044\u90e8\u5206\u3082\u591a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\uff0c\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u7528\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306a\u3069\u5f79\u7acb\u3064\u90e8\u5206\u3082\u3042\u3063\u305f\u306e\u3067\uff0c\u3061\u3083\u3093\u3068\u6e96\u5099\u3092\u3057\u305f\u306e\u306f\u826f\u304b\u3063\u305f\u3088\u3046\u306b\u601d\u3044\u307e\u3059\uff0e<\/p>\n \u591a\u5c11\u6642\u7cfb\u5217\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\uff0c\u5927\u4f53\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3053\u3068\u3092\u3084\u308a\u307e\u3057\u305f\uff0e<\/p>\n \u6700\u521d\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u306e\u7d50\u679c\u304c 2,364 \u3067\u6700\u7d42\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u7d50\u679c\u304c 18,964 \u3067\u3057\u305f\uff0e\u518d\u8d77\u52d5\u5f8c\u306e\u8a66\u9a13\u3067\u30d9\u30b9\u30c8\u30b9\u30b3\u30a2\u306e 19,172 \u304c\u51fa\u305f\u3088\u3046\u3067\u9a5a\u304d\u304c\u3042\u308a\u307e\u3057\u305f\uff0e(\u7d50\u679c\u767a\u8868\u306e\u6642\u306b\u6700\u7d42\u306e\u30d9\u30f3\u30c1\u3068\u9055\u3046\u30b9\u30b3\u30a2\u304c\u51fa\u305f\u306e\u3067 fail \u3057\u305f\u3068\u601d\u3063\u3066\u3044\u307e\u3057\u305f\uff0e) \u307e\u305f\u8ca0\u8377\u5206\u6563\u304c\u3046\u307e\u304f\u3044\u3063\u305f\u304b\u3069\u3046\u304b\u3067\u304b\u306a\u308a\u30b9\u30b3\u30a2\u304c\u4e0a\u4e0b\u3057\u3066\u3044\u307e\u3059\uff0e<\/p>\n\u554f\u984c<\/h2>\n
\u4e8b\u524d\u306e\u6e96\u5099<\/h2>\n
\n
\u3084\u3063\u305f\u3053\u3068<\/h2>\n
\n
\n
\n
\n
status<\/code>\u30fb
addIsu<\/code>\u30fb
buyItem<\/code>\u00a0\u306e\u5b9f\u884c\u56de\u6570\u3092\u30ab\u30a6\u30f3\u30c8\u3059\u308b\u4ed5\u7d44\u307f\u3092\u5165\u308c\u308b\n
\n
status<\/code>\u30fb
addIsu<\/code>\u304c\u5927\u4f53\u540c\u3058\u56de\u6570\u304f\u3089\u3044\u3067
buyItem<\/code>\u00a0\u304c\u4e00\u6841\u5c11\u306a\u304b\u3063\u305f\u5370\u8c61<\/li>\n<\/ul>\n<\/li>\n
\n
status<\/code>\u30fb
addIsu<\/code>\u30fb
buyItem<\/code>\u00a0\u306e\u5b9f\u884c\u6642\u9593\u3092\u53d6\u308b\u4ed5\u7d44\u307f\u306e\u5c0e\u5165<\/li>\n
get_status<\/code> \u306e\u9ad8\u901f\u5316\u306b\u53d6\u308a\u7d44\u3080\n
\n
current_time<\/code> \u4ee5\u524d\u306e
adding<\/code> \u306e\u7dcf\u548c\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u305f\u3044\u300d<\/li>\n
\n
get_status<\/code> \u3067
current_time<\/code> \u4ee5\u524d\u306e
adding<\/code> \u306e\u7dcf\u548c\u3092\u8a08\u7b97<\/li>\n
current_time<\/code> \u4ee5\u524d\u306e
adding<\/code> \u3092
DELETE<\/code> \u3057\u3066\uff0c\u4ee3\u308f\u308a\u306b\u8a08\u7b97\u3057\u305f\u7dcf\u548c\u3092
INSERT<\/code><\/li>\n
current_time<\/code> \u4ee5\u524d\u306e
adding<\/code> \u304c\u4e00\u5b9a\u6570\u4ee5\u4e0a\u305f\u307e\u3063\u305f\u3068\u304d\u306e\u307f\u3053\u306e\u51e6\u7406\u3092\u5b9f\u884c<\/li>\n<\/ul>\n<\/li>\n
calc_status<\/code> \u306b\u624b\u3092\u5165\u308c\u305a\u306b\u9ad8\u901f\u5316\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3057\u305f<\/li>\n<\/ul>\n<\/li>\n
\n
\n
\n
\n
\u30b9\u30b3\u30a2<\/h2>\n