mirror of
https://github.com/Eugeny/tabby.git
synced 2025-08-16 14:21:53 +00:00
.github
app
assets
lib
app.ts
cli.ts
config.ts
index.ts
lru.ts
window.ts
src
dev-app-update.yml
index.pug
package.json
tsconfig.json
tsconfig.main.json
webpack.config.js
webpack.main.config.js
yarn.lock
build
docs
extras
scripts
snap
terminus-community-color-schemes
terminus-core
terminus-plugin-manager
terminus-settings
terminus-ssh
terminus-terminal
terminus-uac
.all-contributorsrc
.eslintrc.yml
.gitignore
.pug-lintrc.js
.travis.ssh.key.enc
.travis.ssh.key.pub
.travis.yml
CODE_OF_CONDUCT.md
HACKING.md
LICENSE
README.md
appveyor.yml
package.json
tsconfig.json
typedoc.js
webpack.config.js
yarn.lock
16 lines
401 B
TypeScript
16 lines
401 B
TypeScript
let lru = require('lru-cache')({ max: 256, maxAge: 250 })
|
|
|
|
let fs = require('fs')
|
|
let origLstat = fs.realpathSync.bind(fs)
|
|
|
|
// NB: The biggest offender of thrashing realpathSync is the node module system
|
|
// itself, which we can't get into via any sane means.
|
|
require('fs').realpathSync = function (p) {
|
|
let r = lru.get(p)
|
|
if (r) return r
|
|
|
|
r = origLstat(p)
|
|
lru.set(p, r)
|
|
return r
|
|
}
|