From 64c7d34242c417a2a430534717ad2b3850e27602 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Thu, 20 Mar 2008 08:33:09 +0000 Subject: [PATCH] disabled comm flush optimization --- web/Obj/brisk.phh | 7 ++++--- web/briskin5/index_rd.php | 8 +++++--- web/index_rd.php | 16 +++++++++------- web/index_wr.php | 6 ++++-- 4 files changed, 22 insertions(+), 15 deletions(-) diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index bc2162c..04d6483 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -62,7 +62,7 @@ define(BRISK_SINGLE_SESS, ""); $G_false = FALSE; $G_all_points = array( 11,10,4,3,2, 0,0,0,0,0 ); -$G_brisk_version = "spawn-0.10.2"; +$G_brisk_version = "spawn-0.10.3"; $root_wellarr = Array ( 'Benvenuto in brisk (Ver. '.$G_brisk_version.'), NOVITA\': dimensionamento dinamico dell\'area dati e ottimizzazione della stessa, versione beta.', 'Se vuoi iscriverti alla Mailing List, cliccala!' ); @@ -1005,8 +1005,9 @@ class Room { if ($tab_idx < $user_tab_n) { log_main("PRE show_room username: ".$user_cur->name." STEP: ".$user_cur->step); - if ($trans_delta == 0) - while (array_pop($user_cur->comm) != NULL); +// ARRAY_POP DISABLED +// if ($trans_delta == 0) +// while (array_pop($user_cur->comm) != NULL); $user_cur->trans_step = $user_cur->step + 1 + $trans_delta; $user_cur->comm[$user_cur->step % COMM_N] = ""; diff --git a/web/briskin5/index_rd.php b/web/briskin5/index_rd.php index 234e7b4..4bdb51f 100644 --- a/web/briskin5/index_rd.php +++ b/web/briskin5/index_rd.php @@ -177,10 +177,12 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su } else { log_rd2("TRANS NON ATTIVATO"); - while (array_pop($user->comm) != NULL); - // $user->step_inc(COMM_N + 1); - Briskin5::save_data($bri); +// ARRAY_POP DISABLED +// while (array_pop($user->comm) != NULL); +// // $user->step_inc(COMM_N + 1); +// Briskin5::save_data($bri); + Briskin5::unlock_data($sem); ignore_user_abort(FALSE); } diff --git a/web/index_rd.php b/web/index_rd.php index 6c636b8..526ca34 100644 --- a/web/index_rd.php +++ b/web/index_rd.php @@ -174,13 +174,15 @@ function maincheck($sess, $cur_stat, $cur_subst, $cur_step, &$new_stat, &$new_su ignore_user_abort(FALSE); } else { - log_rd2("TRANS NON ATTIVATO, clean del comm array"); - while (($el = array_pop($user->comm)) != NULL) { - log_rd2("clean element [".$el."]"); - } - // $user->step_inc(COMM_N + 1); - Room::save_data($room); - // $new_step = $user->step; + log_rd2("TRANS NON ATTIVATO"); +// ARRAY_POP DISABLED +// log_rd2("TRANS NON ATTIVATO, clean del comm array"); +// while (($el = array_pop($user->comm)) != NULL) { +// log_rd2("clean element [".$el."]"); +// } +// // $user->step_inc(COMM_N + 1); +// Room::save_data($room); +// // $new_step = $user->step; Room::unlock_data($sem); ignore_user_abort(FALSE); diff --git a/web/index_wr.php b/web/index_wr.php index b3abbdb..808b020 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -190,8 +190,10 @@ else if ($user->stat == 'room') { log_wr("Pre if!"); - // CHECK - while (array_pop($user_cur->comm) != NULL); +// ARRAY_POP DISABLED +// // CHECK +// while (array_pop($user_cur->comm) != NULL); + $ret = ""; $ret .= sprintf('gst.st_loc++; gst.st=%d; createCookie("table_idx", %d, 24*365, cookiepath); createCookie("table_token", "%s", 24*365, cookiepath); the_end=true; window.onunload = null ; document.location.assign("briskin5/index.php");|', $user_cur->step+1, $table_idx, $table_token); -- 2.17.1