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

Interacting with Sublime Text console become slow when some very big line is printed to the console #1968

Closed
evandrocoan opened this issue Oct 1, 2017 · 3 comments
Labels

Comments

@evandrocoan
Copy link

evandrocoan commented Oct 1, 2017

Summary

If you developing a Sublime Text package and you print something to the Sublime Text console which really big as 1000.000 characters in one line, Sublime Text became incredibly slow, until that big line get out of the console history.

Expected behavior

Cut off the line contents or wrap the line after a threshold (for performance) when some very big one liner is printed to the console.

Actual behavior

Become slow when some very big line is printed to the console.

Steps to reproduce

  1. Open Sublime Text console Ctrl+'
  2. Run this command: big = [str(i) for i in range(0, 10000000 )]; print( "".join(big) )

image

Environment

  • Operating system and version:
    • Windows 10 build 15063 x64
    • Mac OS ...
    • Linux ...
  • Monitor:
    • Resolution 1920x1080
    • dpi_scale used in ST 1.0
  • Sublime Text:
    • Build 3144
    • 32 bit

Related:

  1. Allow the user to Increase the console output buffer size beyond 3000 lines #1416 Allow the user to Increase the console output buffer size beyond 3000 lines
  2. The build panel became incredibly slow after running continuous output #1863 The build panel became incredibly slow after running continuous output
@keith-hall
Copy link
Collaborator

For me, trying to double click on the long line takes a while for ST to process it, and scrolling it into view is a little laggy, but otherwise ST seems to perform fine. Perhaps you have some plugin which is processing all visible lines in all visible views or something? Can you confirm this behavior with a clean state?

@keith-hall keith-hall changed the title Become low when some very big line is printed to the console Become slow when some very big line is printed to the console Oct 1, 2017
@evandrocoan
Copy link
Author

evandrocoan commented Oct 1, 2017

Yes, but the lag is only when interacting with the console view. If I interact with files opened, it performs fine.

image

When interacting with Console, Sublime Text application hit 100% of its core usage.

  • Notice my computer is underclocked to ~1GHz. The test computer characteristics are:

    1. Processor Intel i3-390M @2.67 GHz: (Underclocked to 1 GHz)

      C:\>echo %PROCESSOR_ARCHITECTURE% %PROCESSOR_IDENTIFIER% %PROCESSOR_LEVEL% %PROCESSOR_REVISION%
      AMD64 Intel64 Family 6 Model 37 Stepping 5, GenuineIntel 6 2505
      

      image

    2. RAM 8 GB DDR3 @1067 MHz:

      C:\>wmic MemoryChip get BankLabel, Capacity, MemoryType, TypeDetail, Speed
      BankLabel  Capacity    MemoryType  Speed  TypeDetail
      BANK 0     4294967296  24          1067   128
      BANK 2     4294967296  24          1067   128
      

      image

    3. GPU Intel(R) HD Graphics 64 MB of RAM

      C:\>wmic path win32_VideoController get name
      Name
      Intel(R) HD Graphics
      

      image


@evandrocoan evandrocoan changed the title Become slow when some very big line is printed to the console Interacting with Sublime Text console become slow when some very big line is printed to the console Oct 1, 2017
@BenjaminSchaaf
Copy link
Member

This doesn't reproduce in ST 4160. Closing as this has likely been fixed.

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

No branches or pull requests

3 participants