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

Reopen closed pane items in workspace – by uri instead of deserializing #1283

Merged
merged 3 commits into from
Dec 11, 2013

Conversation

nathansobo
Copy link
Contributor

Serializing and deserializing closed pane items was turning into a pain
with the new telepath changes that are phasing out this kind of on the
fly serialization. Reopening by uri saves memory and simplifies panes
enormously. If we want non-uri reopening we can revisit it later when
telepath models are better integrated.

Serializing and deserializing closed pane items was turning into a pain
with the new telepath changes that are phasing out this kind of on the
fly serialization. Reopening by uri saves memory and simplifies panes
enormously. If we want non-uri reopening we can revisit it later when
telepath models are better integrated.
@kevinsawicki
Copy link
Contributor

Just curious, how does it save memory? 🐎

@benogle
Copy link
Contributor

benogle commented Dec 11, 2013

What are the implications of this? Say I have a bookmark on a buffer, on reload, will that marker still be there?

@nathansobo
Copy link
Contributor Author

@kevinsawicki We are holding on to the serialized state of every destroyed item. In the previous world, this was just a blob of JSON but now that serialize returns orphaned documents, we end up potentially holding on to more. I was witnessing a memory leak on master that I'm pretty sure was due to this.

@benogle The marker isn't saved right now anyway. Markers are in buffers, and as soon as the editor is destroyed we destroy its markers. Someday we can serialize the markers outside the buffer, but without the ability to understand how the buffer has changed since the editor was last opened, this isn't actually that useful.

@nathansobo nathansobo merged commit e5bf705 into master Dec 11, 2013
@kevinsawicki kevinsawicki deleted the ns-reopen-uris branch December 12, 2013 02:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants