Skip to content

refactor: replace document open count with package reference count in lazy loader#1187

Merged
joerdav merged 2 commits intoa-h:mainfrom
prathshenoy:pkgsRefCount
Jun 10, 2025
Merged

refactor: replace document open count with package reference count in lazy loader#1187
joerdav merged 2 commits intoa-h:mainfrom
prathshenoy:pkgsRefCount

Conversation

@prathshenoy
Copy link
Copy Markdown
Contributor

In the lazy loader, track the reference count of each package rather than the number of times each document has been opened. The latter stores redundant information since documents in a package are never opened individually. Rather, any document in a package is always opened in conjunction with all other documents in the same package. Managing reference counts at the package level simplifies the logic and avoids unnecessary redundancy.

@joerdav
Copy link
Copy Markdown
Collaborator

joerdav commented Jun 10, 2025

Cool, yep that makes sense, thanks!

@joerdav joerdav merged commit 9b34663 into a-h:main Jun 10, 2025
5 checks passed
@prathshenoy prathshenoy deleted the pkgsRefCount branch June 10, 2025 15:13
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

Successfully merging this pull request may close these issues.

3 participants