Skip to content

Instantly share code, notes, and snippets.

@schas002
Created February 3, 2017 08:44
Show Gist options
  • Save schas002/8a07a174c0f4c6126f2785f0ccc5d850 to your computer and use it in GitHub Desktop.
Save schas002/8a07a174c0f4c6126f2785f0ccc5d850 to your computer and use it in GitHub Desktop.
Stripping Atom core packages

Stripping Atom core packages

73 to 14 in a few minutes

Date: 2017-02-03


While choosing plugins for Textarea Editor, which by that time was still ignored (100 views is an okay amount, but 8 unique viewers?! and no plugins at all!) I picked an Atom v0.187.0 install.

Post tutorial, I decided to disable packages I don't need pro tempore.

From 73 packages, I went down to the following 14:

  • Release Notes (for the squirrel icon)
  • Whitespace (for freeing up space)
  • Deprecation Cop (for knowing facts that are important)
  • Dev Live Reload (yes, I was on dev mode this whole time)
  • Incompatible Packages (for knowing facts that are important)
  • Keybinding Resolver (^)
  • Language Text (because else, how would I render?)
  • Language TODO (for usefulness)
  • Command Palette (the rescue solution)
  • Settings View (because else, I'd be locked up)
  • Status Bar (a crucial editor component)
  • Tabs (^)
  • Tree View (^^)
  • Welcome (the tutorial, I left it as a gift :3)

--- cut ---

And that's where something that's meant to be work became fun!

I enabled Timecop for a bit, and looked at the stats.

The window loaded in 1s 913ms, which is a reasonable time.

15 packages loaded in 136ms, with 3 of them being lazy taking more than 5ms to load. The laziest of which was the status bar, at 82ms.

14 packages activated in 150ms, with 5 of them being lazy taking more than 5ms to load. The laziest of which were the status bar at 69ms and the tree view at 29ms.

On the color side, 12 themes loaded immediately. Why'd I need that much? 🤷🏻

2 themes activated in 21ms, with one of them being lazy taking more than 5ms to load. That was Atom Dark UI, at 16ms.

To compare, my main Atom install takes quite more time. Well, I don't know... around 30s, I think :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment