Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Retrieve user's keymap path only once #114

Merged
merged 1 commit into from May 31, 2019

Commits on May 30, 2019

  1. Retrieve user's keymap path only once

    Previously, we would retrieve all the active key bindings and filter out 
    the ones that were not defined by the user. The filtering code would 
    repeatedly call `atom.keymaps.getUserKeymapPath` for every loaded key 
    binding, which had the unfortunate side effect of issuing a `statSync` 
    call to check whether the custom keymap file existed or not.
    
    This commit changes the package to only retrieve the user's keymap path 
    once. This consistently reduces Atom startup time by ~50ms on my SSD. 
    Since it was almost entirely I/O work, I would imagine this having an 
    even more significant impact on HDDs.
    Antonio Scandurra committed May 30, 2019
    Copy the full SHA
    de9db47 View commit details
    Browse the repository at this point in the history