Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Big file saving is too long #8091

Closed
Closed

Description

@quolpr

When I am trying to save big files (5000+lines), atom do it too long, about 10 seconds. As an example, sublime save file very fast - less than 1 second.

My system spec:

  1. CPU - AMD A4-5000 APU with Radeon(TM) HD Graphics × 4
  2. ssd 64gb
  3. OS - ubuntu 15.04 x64
  4. uname -r: 3.19.0-16-generic
  5. Atom version - 1.0.2

Activity

  1. quolpr commented on Jul 27, 2015

    @quolpr
    Author

    Oh, yes, 1 second. I updated my comment.

  2. maxbrunsfeld commented on Jul 27, 2015

    @maxbrunsfeld
    Contributor

    I can't reproduce this. What packages do you have installed (apm list --installed)? Can you record and send a screenshot of a Javascript CPU profile while the slow save is occurring?

  3. winstliu commented on Jul 27, 2015

    @winstliu
    Contributor

    @quolpr do you by any chance have tabs-to-spaces installed? If so, can you try disabling it and see if the problem goes away?

  4. lpommers commented on Aug 17, 2015

    @lpommers

    I've seen this as well when working on large files. This happens to me when writing specs for atom. This profile was taken from saving text-editor-spec.coffee. I did have tabs-to-spaces installed, disabling it and restarting atom caused a pretty significant decrease in save time.

    with tabs-to-spaces
    screen shot 2015-08-17 at 5 38 15 pm

    without tabs-to-spaces
    screen shot 2015-08-17 at 5 44 34 pm

  5. quolpr commented on Aug 17, 2015

    @quolpr
    Author

    Sorry for my long answering. Now atom has ony 2 comunity plugins installed(rails-rspec, set-syants, set-syntax). There are not influence on perfomance, I checked. And I am suddenly noticed, that when I am trying to press key - atom is freezing. Should I create a new issue?

    So, when I type one symbol in atom editor:
    when_editing
    And when I am saving it:
    when_saving
    It seems, that issue is connected with
    File has about 3400 lines, size - 400kb.

    Also I can upload *.cpuprofile file, if needed.

  6. maxbrunsfeld commented on Aug 17, 2015

    @maxbrunsfeld
    Contributor

    @quolpr Can you upgrade Atom and profile the slow save one more time? This looks like a performance regression that we have fixed since 1.0.2.

  7. quolpr commented on Aug 17, 2015

    @quolpr
    Author

    @maxbrunsfeld ok, I installed version 1.0.7, and it seems that file saving is fixed. But typing has some freezes.

    When I type 1 symbol (no matter which):
    one_symbol
    As I noticed - after I typed one symbol underline is appeared through 1 second.

    When I typing many symbols(4 symbols):
    many_symbols
    many_symbols_2
    many_items_3
    many_item_4

  8. adamreisnz commented on Dec 8, 2015

    @adamreisnz

    I am running into this issue with Atom 1.2.4, and trying to save a file with around 50k lines. It freezes up Atom and asks me if I want to quit the editor or keep waiting. After about 2 minutes it finally manages to save the file.

  9. lee-dohm commented on Dec 9, 2015

    @lee-dohm
    Contributor

    @adambuczynski Have you followed the suggestions in the Debugging document? Also, could you give the following information?

    • What OS and version are you running?
    • Do you have Emmet installed?
    • Can you reproduce the issue after completely exiting Atom and restarting using atom --safe?
    • Can you include a CPU profile?
  10. adamreisnz commented on Dec 9, 2015

    @adamreisnz

    @lee-dohm

    • Mac OS X 10.10.5
    • No Emmet
    • The problem seems to have reversed, and opening the file now takes about 50 seconds, whereas saving it is faster and now completes after approximately 5 seconds.
    • See attached profile for opening the file:

    ss

  11. stale commented on Aug 29, 2017

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  12. lock commented on Mar 30, 2018

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  13. locked and limited conversation to collaborators on Mar 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions