‹ BackHN Continuity

Thread

Sublime Text Build 4213

108 points · 71 comments · konz

  1. ivandenysov · · focus · HN ↗
    What are some reasons to pick Sublime Text over Zed for someone not familiar with either?
    1. bpev · · focus · HN ↗
      Don't have any metrics or anything, but I use both, and anecdotally, I feel like Sublime is snappier and gives me better battery life.
      1. archonis · · focus · HN ↗
        Flipside, sublime's memory management leaves much to be desired.
        1. ben-schaaf · · focus · HN ↗
          We put a fair amount of effort into reducing our resource footprint, so I'm curious what you find lacking in our memory management. From a quick test we use a similar amount of memory to Zed.
          1. archonis · · focus · HN ↗
            How long did you leave your test running?

            Was it sustained use with files open over days / weeks?

            (I've been a sublime user for well over a decade, across multiple platforms. Thanks for the downvote.)

            1. ben-schaaf · · focus · HN ↗
              Hard to compare the two programs over a week of uptime. ST memory usage does get larger as caches get filled over time, but I've had uptimes of months without issue. I'd expect similar results from other editors.

              Do you have a specific memory issue where it keeps using more over time?

              1. archonis · · focus · HN ↗
                General issue, have observed it on multiple systems. On a long enough timescale, will grow to farcical amounts of memory usage.

                Unfortunately, while this is something I've observed through major point releases and on different platforms, there have always been some plugins in use.

                UnUnfortunately not enough commonality in configuration or hours in the day to track down if this would happen on a totally clean install...

                I'm sure your roadmap is quite extensive, but it would be great if sublime itself could graph or warn when memory usage increased by some specified percentage, or if any particular plugin spikes resource usage.

                1. ben-schaaf · · focus · HN ↗
                  Plugins are a frequent culprit of issues like this. Depending on how you're tracking memory usage you may already be able to at least narrow down the culprit by looking at which process is using too much; plugins run on a separate process and may launch additional processes from there.

                  Unfortunately tracking individual plugin memory usage is not possible without invasive (and slow) tracing. If the plugins are causing big memory usage in the main process it can be hard to nail down due to that state being shared between all plugins.

      2. hackermanai · · focus · HN ↗
        Sublime Text is measured "snappier" and use less memory than Zed.

        <a href="https:&#x2F;&#x2F;koieditor.com&#x2F;benchmarks&#x2F;" rel="nofollow">https:&#x2F;&#x2F;koieditor.com&#x2F;benchmarks&#x2F;

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.