atom-community / atom-community/atom-script

Limit number of history lines

Open
#1,382 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
730
Forks
264
PR merge metrics
No merged PRs in 30d

Description

History lines need to be limited. As for long running scripts with lots of output - such thing managed to hang Atom with a half of OS. Getting frequent "Editor is not responding" from Atom. Still the script continued execution (as per db changes). History at that point contained over 10000 lines with 5-8 kb json on each line.

It was fine on ~300 seconds runtime, but after 1000 - things became really bad.

Most software related to possible high output include "number of history lines" option. Any line older than that number of recent lines is purged, thus retaining memory usage and performance.


Script type ran: python
OS: OSX El Capitan
Hardware: MacBook Pro (Retina, 15-inch, Early 2013), cpu: 2,7 GHz Intel Core i7, mem: 16 GB 1600 MHz DDR3
Atom version: 1.18.0
Script: latest from atom packages

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.