[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Don't measure timings we never use (e921afd)

Marcel Fabian Krüger tex at 2krueger.de
Tue Aug 10 14:42:01 CEST 2021


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/e921afd3e833b9521ae43e212023b3b0a2d90bc9

>---------------------------------------------------------------

commit e921afd3e833b9521ae43e212023b3b0a2d90bc9
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Tue Aug 10 14:42:01 2021 +0200

    Don't measure timings we never use


>---------------------------------------------------------------

e921afd3e833b9521ae43e212023b3b0a2d90bc9
 src/luaotfload.lua | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/luaotfload.lua b/src/luaotfload.lua
index 728123c..5980775 100644
--- a/src/luaotfload.lua
+++ b/src/luaotfload.lua
@@ -172,11 +172,6 @@ local function make_loader_name (prefix, name)
     return prefix .. "-" .. name .. ".lua"
 end
 
-local timing_info = {
-    t_load = { },
-    t_init = { },
-}
-
 local function make_loader (prefix, load_helper)
     return function (name)
         local t_0 = osgettimeofday ()
@@ -184,7 +179,6 @@ local function make_loader (prefix, load_helper)
         --- We don’t want the stack info from inside, so just pcall().
         local ok, data = pcall (load_helper or require, modname)
         local t_end = osgettimeofday ()
-        timing_info.t_load [name] = t_end - t_0
         if not ok then
             io.write "\n"
             local msg = luaotfload.log and luaotfload.log.report or print
@@ -256,7 +250,6 @@ local function context_loader (name, path)
     end
     local ret = context_isolated_load (modpath)
     local t_end = osgettimeofday ()
-    timing_info.t_load [name] = t_end - t_0
 
     if ret ~= nil then
         --- require () returns “true” upon success unless the loaded file
@@ -293,7 +286,6 @@ local function install_loaders ()
             logreport ("log", 4, "load",
                        "Module %q loaded in %g ms.",
                        name, d_t * 1000)
-            timing_info.t_init [name] = d_t
         end
     end
 
@@ -368,7 +360,6 @@ luaotfload.main = function ()
     logreport ("log", 1, "main",
                "initialization completed in %0.3f seconds\n",
                osgettimeofday() - starttime)
-----inspect (timing_info)
     luaotfload_module = nil
 end
 





More information about the latex3-commits mailing list.