1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 19:54:12 +01:00

Precompute completion string matching function.

This commit is contained in:
Kris Maglione
2010-09-17 06:15:13 -04:00
parent 8b0d9586b2
commit a5213c3760
14 changed files with 68 additions and 63 deletions

4
common/content/io.js Executable file → Normal file
View File

@@ -314,7 +314,7 @@ lookup:
*/
source: function (filename, silent) {
let wasSourcing = this.sourcing;
dactyl.dump("sourcing " + filename);
defmodule.loadLog.push("sourcing " + filename);
let time = Date.now();
try {
var file = io.File(filename);
@@ -432,7 +432,7 @@ lookup:
dactyl.echoerr(message);
}
finally {
dactyl.dump("done sourcing " + filename + ": " + (Date.now() - time) + "ms");
defmodule.loadLog.push("done sourcing " + filename + ": " + (Date.now() - time) + "ms");
this.sourcing = wasSourcing;
}
},