Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bts consumes a huge amount of memory when fetching issues #14

Open
whirm opened this issue Jan 23, 2015 · 1 comment
Open

bts consumes a huge amount of memory when fetching issues #14

whirm opened this issue Jan 23, 2015 · 1 comment

Comments

@whirm
Copy link

whirm commented Jan 23, 2015

I had to stop it when emacs was consuming 11GB of RAM.

I mem profiled a short run of bts:summary-reload-all and this is what I got:

- timer-event-handler                                  418,239,842,941  99%
 - byte-code                                           418,239,826,301  99%
  - apply                                              418,239,826,301  99%
   - #<lambda 0x38837170c73cab4a>                      418,040,710,147  99%
    - bts::summary-add-entry                           418,040,710,147  99%
     - byte-code                                       418,040,710,147  99%
      - bts::summary-make-tabulated-entry              418,040,495,149  99%
       - truncate-string-to-width                      404,251,759,475  96%
        - byte-code                                    404,251,759,475  96%
         - yaxception-build-stacktrace                 404,251,759,475  96%
          - byte-code                                  404,251,757,363  96%
           - string-match                              404,247,423,419  96%
            - yaxception-build-stacktrace              404,247,423,419  96%
             - byte-code                               404,247,421,307  96%
              - string-match                           404,241,113,704  96%
               - yaxception-build-stacktrace           404,241,113,704  96%
                - byte-code                            404,241,111,592  96%
                 - string-match                        404,232,399,501  96%
                  - yaxception-build-stacktrace        404,232,399,501  96%
                   - byte-code                         404,232,397,389  96%
                    - string-match                     404,220,681,679  96%
                     - yaxception-build-stacktrace     404,220,681,679  96%
                      - byte-code                      404,220,679,567  96%
                       - string-match                  335,761,100,799  80%
                        - yaxception-build-stacktrace  335,761,100,799  80%
                         - byte-code                   335,761,100,799  80%
                          - string-match               329,872,998,422  78%
                           - yaxception-build-stacktrace329,872,998,422  78%
                            - byte-code                329,872,965,026  78%
                               backtrace               14,521,110,667   3%
                               generate-new-buffer             48,363   0%
                               thing-at-point                  18,923   0%
                          - replace-regexp-in-string    5,887,998,482   1%
                             apply                      5,887,958,544   1%
                          + backtrace                         101,783   0%
                          + thing-at-point                      2,112   0%
                       - backtrace                     68,444,184,870  16%
                        - yaxception-build-stacktrace  68,444,174,470  16%
                         - byte-code                   68,444,174,470  16%
                          - backtrace                  67,703,830,719  16%
                           - yaxception-build-stacktrace67,703,830,719  16%
                            + byte-code                67,703,826,214  16%
                            generate-new-buffer                 1,029   0%
                         generate-new-buffer                    4,135   0%
                    + replace-regexp-in-string                239,400   0%
                      backtrace                                 8,320   0%
                      generate-new-buffer                       3,087   0%
                 + replace-regexp-in-string                   212,256   0%
                   backtrace                                    8,320   0%
                   generate-new-buffer                          3,087   0%
              + replace-regexp-in-string                      199,624   0%
                backtrace                                       6,240   0%
                generate-new-buffer                             3,087   0%
           + replace-regexp-in-string                         211,208   0%
             match-string-no-properties                        18,384   0%
             backtrace                                          6,240   0%
             generate-new-buffer                                4,135   0%
           + thing-at-point                                     1,056   0%
       + replace-regexp-in-string                              25,946   0%
       + bts-github::summary-label-decorate                     4,160   0%
      + bts::summary-regist-entries                           176,488   0%
      + apply                                                  24,990   0%
   + bts-github:fetch-issue                               192,797,758   0%
   + auto-revert-buffers                                    6,304,876   0%
   + bts::ticket-fetch-sentinel                                10,400   0%
     jit-lock-context-fontify                                   1,040   0%
   + blink-cursor-start                                         1,040   0%
 + timer-inc-time                                               9,360   0%
 + timer-activate                                               3,120   0%
 + timer-activate-when-idle                                     1,040   0%
   timer-until                                                  1,040   0%
+ command-execute                                          51,411,459   0%
+ redisplay_internal (C function)                              83,464   0%
+ winner-save-old-configurations                                7,280   0%
+ global-git-gutter-mode-check-buffers                          1,040   0%
+ global-company-mode-check-buffers                             1,040   0%
+ blink-cursor-end                                              1,040   0%
+ yas--post-command-handler                                       800   0%
  sml/generate-position-help                                       32   0%
  ...                                                               0   0%

How to reproduce:
Configure a project/query to fetch all open issues from https://github.com/Tribler
M-x bts:summary-open RET M-x bts-summary-reload-all RET

Thanks for this project! I needed something like this! :)

Let me know if you need more info.

@aki2o
Copy link
Owner

aki2o commented Jan 28, 2015

Hi, @whirm
Thanks for your inform. Then, give me a time...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants