jamescherti / easysession.el

Emacs package: Easily persist and restore your editing sessions effortlessly.
https://github.com/jamescherti/easysession.el
GNU General Public License v3.0
24 stars 1 forks source link

lazy loading large number of buffers during session restore #1

Open anupamk opened 1 month ago

anupamk commented 1 month ago

i have a humble request actually :o) typically, my emacs sessions last for months at a time, and grows to use a plethora (> couple of hundred) of source code buffers, window configuration etc. etc. saving sessions in such cases is definitely very useful indeed.

while restoring the session, instead of loading everything all at once, perhaps it might make sense to lazy load in background various buffers etc ?

i am not even sure if this makes any sense at all ?

jamescherti commented 1 month ago

Thank you for your request! Lazy loading buffers in the background during session restoration is a great idea. It can help reduce the initial startup time while still allowing you to access your buffers when needed. I could implement it by making easysession.el load all the buffers attached to windows initially. Subsequently, it could lazily load the remaining buffers in the background.