performance improvements

This commit is contained in:
Philip C Monk 2015-03-18 17:25:01 -04:00
parent d7a5bae0e3
commit 38d9504478
4 changed files with 4 additions and 3 deletions

2
n/t.c
View File

@ -52,7 +52,7 @@ u3t_slog(u3_noun hod)
gettimeofday(&f2, 0);
timersub(&f2, &b4, &d0);
ms_w = (d0.tv_sec * 1000) + (d0.tv_usec / 1000);
printf("%d.%dms ", ms_w, (d0.tv_usec % 1000) / 10);
printf("%d.%dms ", ms_w, (int) (d0.tv_usec % 1000) / 10);
}
gettimeofday(&b4, 0);
old = 1;

View File

@ -461,6 +461,8 @@ u3_lo_shut(c3_o inn)
//
if ( c3y == inn ) {
u3_unix_ef_look();
u3_raft_work();
_lo_time();
}
// u3_lo_grab("lo_shut d", u3_none);

View File

@ -1577,7 +1577,7 @@ _raft_punk(u3_noun ovo)
gettimeofday(&f2, 0);
timersub(&f2, &b4, &d0);
ms_w = (d0.tv_sec * 1000) + (d0.tv_usec / 1000);
uL(fprintf(uH, "%%punk %s %d.%dms\n", txt_c, ms_w, (d0.tv_usec % 1000) / 10));
uL(fprintf(uH, "%%punk %s %d.%dms\n", txt_c, ms_w, (int) (d0.tv_usec % 1000) / 10));
free(txt_c);
#endif

View File

@ -250,7 +250,6 @@ _unix_fs_event_cb(uv_fs_event_t* was_u,
c3_i evt_i,
c3_i sas_i)
{
// note that we're doing something tricky and weird here.
//
// * libuv passes around a pointer to a uv_fs_event_t